[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] Speed up java.nio.ByteBuffer

From: Michael Koch
Subject: Re: [cp-patches] Speed up java.nio.ByteBuffer
Date: Sat, 14 Aug 2004 08:53:06 +0200
User-agent: KMail/1.6.2

Am Samstag, 14. August 2004 01:31 schrieb Tom Tromey:
> >>>>> "Florian" == Florian Weimer <address@hidden> writes:
> Florian> On GCJ, this patch results in a 18% improvement in speed
> for Florian> loading databases with Berkeley DB Java Edition.
> Excellent.
> Florian> Further improvements will require a new class for a
> read-only Florian> byte buffer, so that the read-only flag can go.
> It would be nice to hear what performance impact this has.
> Florian> 2004-08-12  Florian Weimer  <address@hidden>
> Florian>      * java/nio/ (put): New methods to
> speed up Florian>     ByteBuffer put and array put operations.
> Do we want/need similar changes to all the other *BufferImpl
> classes?
> I hate to mention this, but would it make sense to generate these
> classes by running sed on a template file, or something similar? 
> It seems strange to keep patching 7 copies of the same code.

Thats only partly possible. In fact this was done in the past before I 
started hacking on it. The problem is that the classes are not all 
similar. At least ByteBuffer and CharBuffer define additional stuff.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]