a) So if I take a key value and insert exactly one byte of data for it, that
data will never expire? What if I flood Freenet with thousands of one byte
inserts? Will they be blocking datastores (which are limited by number of
entries as well) and never be cleared?
b) Isn't this a little risky do right before a release without
testing as to the effects?
c) You'd need to make sure searchData() does the same thing (if you want it
too).


On Sun, 06 Aug 2000, Ian Clarke wrote:
> 
> I have now modified the datastore so that it takes size into  account by
> creating a new insert() method in CyclicArray, and modifying the put() method
> in StandardDataStore.
> 
> This piece of javadoc describes the new functionality of put():
> """
> Inserts a DataStoreItem into the datastore.  The new item will be placed in 
> the
> DataStore such that the total length of all items "above" it (where new items
> are added at the "top") is smaller than the length of this DSI, but if it were
> one item lower, then the total size of the items above would be greater than
> the length of this item.  If an item with no document is encountered then the
> item is inserted immedately.
> """
> 
> This is a significant change and while I have tested it, people should keep an
> eye out for weird behaviour in data insertion.
> 
> Obviously, if anyone sees any flaws in the algorithm I describe above say so
> now!
> 
> Ian.
> 

----------------------------------------
Content-Type: application/pgp-signature; name="unnamed"
Content-Transfer-Encoding: 7bit
Content-Description: 
----------------------------------------

-- 
\oskar

_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to