Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #27526

Re: java8 up to 6x slower than java7

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail
From Jan Burse <janburse@fastmail.fm>
Newsgroups comp.lang.java.programmer
Subject Re: java8 up to 6x slower than java7
Date Sun, 16 Feb 2014 14:43:06 +0100
Organization albasani.net
Lines 20
Message-ID <ldqf9a$adv$2@news.albasani.net> (permalink)
References <29a51a94-8f9a-41b1-980f-e8c13e2d11a2@googlegroups.com> <ldnitt$mtv$1@news.albasani.net> <ldnkf1$pp0$1@news.albasani.net> <bmbo69F4b27U1@mid.individual.net> <ldqf11$adv$1@news.albasani.net>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.albasani.net MnB6G2KMSgTyCETJpfSxEDOxUikc3ojPGGrFvBz5jv9BS9MpSxGoJTaedUZoDU4tOC1k0qMW/i2W8aqC7eGoZw==
NNTP-Posting-Date Sun, 16 Feb 2014 13:43:06 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="lWtRQhlGPrFldfStRWVOj7TBGnuinT9czaa53GghtgwTMkFl6uUG1J9V8Fet7yJ65iyoPmW3Nt4HdpOjOfdQDLa7qaaBhLyTwsJpFQXivEJNt/Js6hmKLZ4yv3NrJwa4"; mail-complaints-to="abuse@albasani.net"
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24
In-Reply-To <ldqf11$adv$1@news.albasani.net>
Cancel-Lock sha1:RtM3QbPBjKvI/YYFCgYYMrkLM44=
Xref csiph.com comp.lang.java.programmer:27526

Show key headers only | View raw


Jan Burse schrieb:
> For the slower use cases I am planing using my custom
> HashMap. The custom HashMap has some further advantages
> besides sparing the iterator, I also don't do mod
> counting.

Last but not least, one feature I am constantly missing
from HashMap, is that it should grow back in size.
HashMap is only growing and growing, and never
automatically shrinks.

> One trick to develop a custom HashMap is to use the
> JDK source code, and create a stripped down variant.
> Not sure whether copyright allows this really. So I
> didn't mention that here.

The shrinking I didn't find in the JDK source code,
so this is genuine implementation. I use a lower
watermark which is 1/4 and I am shrinking to 1/2.
Works pretty well so far.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

java8 up to 6x slower than java7 Dennis Haupt <d.haupt82@gmail.com> - 2014-02-15 03:00 -0800
  Re: java8 up to 6x slower than java7 Jan Burse <janburse@fastmail.fm> - 2014-02-15 12:26 +0100
    Re: java8 up to 6x slower than java7 Jan Burse <janburse@fastmail.fm> - 2014-02-15 12:28 +0100
    Re: java8 up to 6x slower than java7 Jan Burse <janburse@fastmail.fm> - 2014-02-15 12:52 +0100
      Re: java8 up to 6x slower than java7 Robert Klemme <shortcutter@googlemail.com> - 2014-02-16 13:10 +0100
        Re: java8 up to 6x slower than java7 Jan Burse <janburse@fastmail.fm> - 2014-02-16 14:38 +0100
          Re: java8 up to 6x slower than java7 Jan Burse <janburse@fastmail.fm> - 2014-02-16 14:43 +0100
            Re: java8 up to 6x slower than java7 Robert Klemme <shortcutter@googlemail.com> - 2014-02-16 14:53 +0100
              Re: java8 up to 6x slower than java7 Jan Burse <janburse@fastmail.fm> - 2014-02-16 20:27 +0100
                Re: java8 up to 6x slower than java7 Jan Burse <janburse@fastmail.fm> - 2014-02-16 20:36 +0100
                Re: java8 up to 6x slower than java7 Robert Klemme <shortcutter@googlemail.com> - 2014-02-17 18:55 +0100
                Re: java8 up to 6x slower than java7 Wanja Gayk <brixomatic@yahoo.com> - 2014-03-02 20:52 +0100
                Re: java8 up to 6x slower than java7 Jan Burse <janburse@fastmail.fm> - 2014-03-03 11:53 +0100
                Re: java8 up to 6x slower than java7 Joerg Meier <joergmmeier@arcor.de> - 2014-03-03 17:16 +0100
                Re: java8 up to 6x slower than java7 Jan Burse <janburse@fastmail.fm> - 2014-03-03 19:53 +0100
                Re: java8 up to 6x slower than java7 Lew <lewbloch@gmail.com> - 2014-03-03 13:44 -0800
      Re: java8 up to 6x slower than java7 Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2014-02-16 11:24 -0800
  Re: java8 up to 6x slower than java7 Robert Klemme <shortcutter@googlemail.com> - 2014-02-15 12:55 +0100
  Re: java8 up to 6x slower than java7 "Qu0ll" <Qu0llSixFour@gmail.com> - 2014-02-15 23:42 +1100
  Re: java8 up to 6x slower than java7 Roedy Green <see_website@mindprod.com.invalid> - 2014-02-16 00:25 -0800

csiph-web