On Tue, Nov 30, 2010 at 07:48, Shai Erera <[email protected]> wrote:
> The break was only in MockRAMDir, and even
> that is because I changed fileMap type from HashMap to Map, which IMO should
> have been defined like that from the beginning.
As a piece of trivia.
I did some benchmarks and declaring fields with the type of a concrete
subclass, rather than interface, proved to be faster.
(On a latest 1.6 Sun JVM)
I guess that's due to JIT's failure to inline method calls on that
field (or additional class checks introduced before the short path).
Ugly :/

-- 
Kirill Zakharenko/Кирилл Захаренко ([email protected])
Phone: +7 (495) 683-567-4
ICQ: 104465785

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to