I am using Long
/Integer
data types very frequently in my application, to build Generic datatypes. I fear that using these wrapper objects instead o
Like others say,
Premature optimization is root of evil.
Having said that, prefer primitive types to boxed types wherever you can.
UPDATE: Might also add that according to developers that work with high-performing code (like distributed cache) boxing can indeed become a performance problem quite frequently. I also worked with high-performing apps. but have never identified boxing as a worthy optimization place yet.