[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: PUBLIC POLL: final static

From: William Uther <will=subversion_at_cs.cmu.edu>
Date: 2001-11-30 19:02:43 CET

Hi,
  I'm a lurker on this list. I was just wondering some things:

  i) Is there is ANY performance difference on a modern Java VM? Hotspot
should inline accessor functions when it does the compile to native code.

  ii) Even if there is a performance difference, is it likely to be
significant?

later,

\x/ill :-}

--On Friday, 30 November 2001 4:29 PM +0100 Alexander Mueller
<alex@littleblue.de> wrote:

> Hi! It's poll time!
>
> There are some classes in the Java / Subversion binding that use public
> variables. They are NOT variables with common read/write access. They are
> initialized through the class constructor. After this they remain
> constant for the rest of the instance lifetime. Example in class Entry:
> "public final Date text_time;"
>
> The reason for this kind of implementation is a performance improvement.
>
> The alternative would be to have accessor methods.
>
> Now its up to you.
>
> If you want it implemented as it is reply to this email and append
> "VARIABLE" to the subject of the message. If you want to have it changed
> to accessor methods, reply to this email and append "ACCESSOR" to the
> subject of the message.
>
> On next Thursday I will count the emails.
>
> Thanks for your participation...
> Have a nice weekend
>
> Alex
>
> P.S.: one vote per person, please... ;-)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:50 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.