classpath-patches
[Top][All Lists]
Advanced

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

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


From: Florian Weimer
Subject: Re: [cp-patches] Speed up java.nio.ByteBuffer
Date: Thu, 12 Aug 2004 20:31:28 +0200

* Michael Koch:

>> We could remove all calls to checkIfReadOnly() as a result; in the
>> new class, put() would simply throw ReadOnlyBufferException.
>
> Is the speed improvement really worth the hassle ?

I suspect it will be quite noticeable if the application makes heavy
use of put(char).  But I'm going to run a test (without the
ByteBufferImpl patch, of course), just to make sure.

If GCJ doesn't optimize away the virtual method call to isReadOnly(),
it will be a win, definitely. 8-)

>> What about the typo fix I sent a few days ago?  Without it, JE
>> doesn't work at all.
>
> And link to this ?

<http://lists.gnu.org/archive/html/classpath-patches/2004-08/msg00037.html>




reply via email to

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