Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] improve perfomance using short instead int?

I would assume no for both.


Arcangel wrote:
> 
> Hello.
> 
> I'm building a Desktop App for Java SE 6 with eclipselink 2.2 and derby
> 10.7.
> 
> I have a class like this:
> 
> @Entity
> public class Sorteo{
> 	@Id
> 	private Integer noSorteo;
> 	private Integer consecutivo;
> 	private integer fraccion;
> ...
> }
> 
> if I rewrite the class in this way:
> 
> @Entity
> public class Sorteo{
> 	@Id
> 	private Short noSorteo;
> 	private Byte consecutivo;
> 	private Byte fraccion;
> ...
> }
> 
> Can I obtain a performance improvement??
> is worth the effort?
> 
> thanks for the help.
> 
> 


-----
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 
Blog:  http://java-persistence-performance.blogspot.com/ Java Persistence
Performance 
-- 
View this message in context: http://old.nabble.com/improve-perfomance-using-short-instead-int--tp31367402p31388582.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top