Boost logo

Boost Users :

From: Mark Westcott (mark-boost_at_[hidden])
Date: 2008-05-08 10:47:27


Mark Westcott escribi?:
> > Hi Joaquin.
> >
[...]
> > I think, for the time being at least, the performance is ok now (using
> > ordered rather than hashed indices).
> > Is there any chance that future versions of MI might be able to store
> > the hashes/complete ordering whilst serializing, or is that Just Not
> > Possible (TM)?
> >

> I think this would pose problems, as hashes are not guaranteedly
> platform portable, so storing
> them transparently to the user could trigger subtle bugs.

> But maybe for your particular applicatin you can consider caching the
> hash values --from your
> description, this can not only accelarate serialization, but also the
> general lookup ops, given
> that your hash algorithm is expensive.

This is very neat! Thanks a lot for the suggestion/code.

Mark


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net