[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [eclipselink-users] Code clean up
- From: James Sutherland <jamesssss@xxxxxxxxx>
- Date: Tue, 2 Sep 2008 07:47:36 -0700 (PDT)
- Delivered-to: firstname.lastname@example.org
Please log a bug for any specific issues you have found.
In general we are very conscious of performance and you should not find any
such issues on critical code paths.
Janda Martin wrote:
> At first I have to say:
> Great work! EclipseLink team
> I have a question about code clean up in EclipseLink 1.0.1 and future
> a) There are some unnecessary allocations. For example:
> *) trivial one like: new Boolean(true / false) can be replaced with
> - this can be changed in 1.0.1 without possibility introducing new
> bug to code
> *) "new Integer(<primitive_int_value>).toString()" instead of
> *) is it possible to use Short/Byte/Character.valueOf(<primitive_value>) -
> some of Object values +-127 are cached
> b) Please run FindBugs (http://findbugs.sourceforge.net/), code coverage
> tool or similar software on eclipse link
> - it is standard for our company to test every library before we use it
> *) there is one infinite loop method that call itself only (maybe not used
> at all)
> *) some threading issues...
> We are forced to run our applications with relatively low memory systems
> with huge amount of data and we want to eliminate garbage collector work
> as much as possible.
> I know that there is very fast linear allocation heap for new Java
> We already use Entities with cloning (eliminating attribute copying with
> reflection), ReadOnly entities..., ScrollableCursor... That are more
> powerful optimizations than "stupid and trivial" ones that I suggested.
> Our company need error free SW (it is software so it is almost
> impossible), stability, and performance.
> Thank you very much and keep your fingers crossed.
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland
EclipseLink , http://www.oracle.com/technology/products/ias/toplink/
Wiki: http://wiki.eclipse.org/EclipseLink EclipseLink ,
Forums: http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink ,
Book: http://en.wikibooks.org/wiki/Java_Persistence Java Persistence
View this message in context: http://www.nabble.com/Code-clean-up-tp19250491p19271635.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.