ECJ-INTEREST-L Archives

February 2014

ECJ-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Sean Luke <[log in to unmask]>
Reply To:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Date:
Tue, 25 Feb 2014 21:28:47 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (17 lines)
Did I tell you the one about how I reported to Sun, back in 2002 I think, that ArrayList's get(), set(), and add() methods were not inlinable, and this could be fixed by moving a single line in the code?  As a result for ten years ArrayList has been 5x slower than it needed to be.  They never fixed this: it's still broken.  But the Hotspot crew has special-cased it internally to compensate.

We have collections here and there as necessary.  But yeah, ECJ tends to work with arrays.

Sean

On Feb 25, 2014, at 9:12 PM, Raymond Shpeley <[log in to unmask]> wrote:

> Hmm... so no Collections...
> 
> "The Java Collections library is unusually badly written in many places internally: 
> and anyway, for speed we tend to work directly with arrays."
> 
> I'll have to check out some examples in ECJ then.
> 
> --

ATOM RSS1 RSS2