Hi Pjotr,

On 11 November 2014 10:30, Robert Osfield <[email protected]> wrote:

> On 11 November 2014 09:54, Pjotr Svetachov <[email protected]>
> wrote:
>
>> I have done some tests and it looks good so far. There is only one
>> regression here and that is that proxy nodes that are set to load
>> immediately are never looked up from the cache ever. This actually is the
>> most common use case for us for those types of nodes.
>>
>
> I have just reviewed the code and the only mechanism I've spotted that
> might fit with this is when paging in a subgraph that contains a ProxyNode
> that uses LOAD_IMMEDIATELY.  Is this correct?
>

I have been thinking further and while I don't have a plan yet, wonder if
it'd be safe to allow reads from the object cache, but to defer writes to
the object cache till the subgraph has been fully processed by the database
pager.

To do such a trick we'd need to record all the pending subgraphs that will
need to be registered with the object cache once process is complete.  I
don't know how to manage this yet, perhaps the ReaderWriter::ReadResult
could be used for this with a local map<filename,subgraph>.

Thoughts?
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to