j.ul.Objects follow-up: methods for var-argification? (original) (raw)
Bob Lee crazybob at crazybob.org
Tue Oct 13 19:09:19 UTC 2009
- Previous message: j.ul.Objects follow-up: methods for var-argification?
- Next message: j.u.Objects follow-up: variations on Object -> String methods
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Oct 12, 2009 at 12:52 PM, Rémi Forax <forax at univ-mlv.fr> wrote:
It's not a good idea to have a hashCode() that allocate objects, at least until escape analysis is implemented in all VMs.
Agree with Joe--these methods don't carry their weight. If the allocation is too much to bear, it's easy enough to write the hash by hand. Plus, it won't have the overhead of a method invocation. ;-)
That's not to say I don't think you should ever do this.
Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20091013/262af105/attachment.html>
- Previous message: j.ul.Objects follow-up: methods for var-argification?
- Next message: j.u.Objects follow-up: variations on Object -> String methods
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]