On 16/11/06, Julen Parra <[EMAIL PROTECTED]> wrote:
> Stephen Colebourne wrote:
> >For long, the reason is that I am trying to move users of Joda-Time to a
> >world where objects are typed (Instant/Duration) rather than untyped
> >(long).
> Could you elaborate on why (apart from the reduction in the number of
> methods). I use untyped (long) a lot in internal calculations for speed,
> and would like to know if there is a problem with that approach.
There is no immediate problem with using primitive numbers, however
general opinion seems to be suggesting that the performance difference
against using an object is rarely important, whereas the documentation
and clarity benefits are much greater. (Generally, the later the JVM,
the faster small short-lived objects are).

Stephen

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to