Re: icp bitrot?

From: Robert Collins <robertc@dont-contact.us>
Date: 09 Oct 2002 09:09:26 +1000

On Wed, 2002-10-09 at 07:54, Henrik Nordstrom wrote:
> Duane Wessels wrote:
>
> > > Actually, I'm creating async storeGetPublic* functions. This requires
> > > breaking every synchronous function that use storeGetPublic up into a
> > > start and completion routine. ICP uses storeGetPublic...
> >
> > What will this do to ICP performance?
>
> Probably not very nice things, but it should depend a lot on the type of
> store index used. The reason for the change has been discussed many
> times, and is to allow for on-disk cache indexes. When using a on-disk
> cache index we do not really have a choice but to have all
> storeGetPublic() calls async in nature..
>
> The response time should only increase marginally when using a in-core
> store index like today. We are then looking at a non-linear code flow
> with a callback in the middle rather than a standard call/return
> function call, but the same basic operations taking place in the same
> order with no interruptions (I suppose.. don't know exacly how Robert is
> implementing this).

I've been doing it my cxx test branch, experimenting with how callback
APIs might look.

It's currently implemented by simply calling the synchronous
storeGetPublic, and then calling back with the result.

The main point is to get the API change from sync to callback
implemented and tested.

Rob

Received on Tue Oct 08 2002 - 17:09:30 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:16:54 MST