On 2/28/07, Marvin Humphrey <[EMAIL PROTECTED]> wrote:

On Dec 21, 2006, at 3:19 PM, David Balmain wrote:

> I'll be very interested to see if it there is a noticable performance
> difference with the "final" classes.

I implemented final methods and final classes a little while back.

All of the following classes became final, which means that all of
their methods became aliases for functions rather than double-
dereference invocations via vtable:

    DelDocs
    PostingsWriter
    SegInfo
    TermInfo
    TermInfosWriter
    TermVectorsReader
    TermVectorsWriter
    InStream
    OutStream
    SortExternal

Truncated mean time to index 1000 Reuters news stories:

    Before: 1.83 seconds
    After:  1.82 seconds

Glad it didn't take me very long to implement.  :)

Thanks for posting this. It'll probably save me a lot of time (or
worry) in the future. ;-)

--
Dave Balmain
http://www.davebalmain.com/

Reply via email to