Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!novia!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!53ab2750!not-for-mail From: "Mike Winter" Subject: Re: hashCode Message-ID: <5026AEE3.56663.calajapr@time.synchro.net> X-Comment-To: Joerg Meier Newsgroups: comp.lang.java.programmer In-Reply-To: <50269FD2.56657.calajapr@time.synchro.net> References: <50269FD2.56657.calajapr@time.synchro.net> X-FTN-AREA: COMP.LANG.JAVA.PROGRAMMER X-FTN-MSGID: 1:261/38 ce1e0352 X-FTN-REPLY: 1:261/38 7ece3b03 Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit X-Gateway: time.synchro.net [Synchronet 3.16a-Win32 NewsLink 1.98] Lines: 29 Date: Sat, 11 Aug 2012 19:19:38 GMT NNTP-Posting-Host: 69.21.70.65 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1344712778 69.21.70.65 (Sat, 11 Aug 2012 14:19:38 CDT) NNTP-Posting-Date: Sat, 11 Aug 2012 14:19:38 CDT Organization: tds.net X-Received-Bytes: 2009 Xref: csiph.com comp.lang.java.programmer:17714 To: Joerg Meier From: Mike Winter On 11/08/2012 17:25, Joerg Meier wrote: > On Sat, 11 Aug 2012 04:54:09 -0700, Roedy Green wrote: >[...] >> In my essay I recommend XOR which is an inherentely faster operation >> than multiply. > > Hasn't that been wrong since about the invention of the 80386 processor > family ? Not that far back: the Pentium required 9-11 cycles to complete a MUL instruction compared to 1-3 for XOR (and the like), depending on operand locations and widths. > Pretty sure by now MUL and XOR both take one cycle and that's it. More-or-less, but the former is still slower for wider operands. However, your point is well-taken: it needn't be as much a concern in most cases. -- Mike Winter Replace ".invalid" with ".uk" to reply by e-mail. --- BBBS/Li6 v4.10 Dada-1 * Origin: Prism bbs (1:261/38) --- Synchronet 3.16a-Win32 NewsLink 1.98 Time Warp of the Future BBS - telnet://time.synchro.net:24