Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Code clean up

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
> versions. 
> 
> -----
> a) There are some unnecessary allocations. For example:
> 
> *) trivial one like: new Boolean(true / false) can be replaced with
> Boolean.TRUE/FALSE
>      - this can be changed in 1.0.1 without possibility introducing new
> bug to code
>  
> *) "new Integer(<primitive_int_value>).toString()" instead of
> Integer.toString(<primitive_int_value>)
> 
> *) 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
> objects...
> 
> 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.
> 
>    Martin
> 


-----
---
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
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.



Back to the top