Skip to main content

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

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.


Back to the top