incubator-lucy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marvin Humphrey (JIRA)" <>
Subject [jira] Updated: (LUCY-61) RAMFile
Date Mon, 26 Oct 2009 04:17:00 GMT


Marvin Humphrey updated LUCY-61:

    Attachment: RAMFile.c

The Lucene implementation of RAMFile is backed by an array of buffers; in
contrast, this implementation uses a single buffer.  This probably makes it
less efficient when writing large files, because reallocating a single buffer
as the file grows is less efficient than adding new, small buffers.  

However, to simulate memory mapping of the entire file, we need to have a
single, unified buffer at read-time.

It is possible to improve on this implementation by adding a multi-buffer set
up for use during write-time, which then would be consolidated into a single
buffer some time between the finish of writing and the first read.  For now,
though, the present, simple implementation will do.

> RAMFile
> -------
>                 Key: LUCY-61
>                 URL:
>             Project: Lucy
>          Issue Type: Sub-task
>            Reporter: Marvin Humphrey
>            Assignee: Marvin Humphrey
>         Attachments: RAMFile.bp, RAMFile.c

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message