Make IntegerType, LongType more efficient

Description

Currently the get() method for IntegerType and LongType allocate a new object every time. It would improve the memory performance if the calls to the constructors were replaced by Integer.valueOf() and Long.valueOf() respectively.

Thanks

Environment

None

Activity

Show:
Strong Liu
March 24, 2010, 10:11 PM

As you may know, hibernate 3.5 is JDK 1.4 compatible, so we can't use this valueof method

Steve Ebersole
March 21, 2011, 7:08 PM

Bulk closing stale resolved issues

Rejected

Assignee

Strong Liu

Reporter

TomasT

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major