Boost logo

Boost :

Subject: Re: [boost] [Feedback] Towards a Better Boost.BloomFilter
From: Giovanni Piero Deretta (gpderetta_at_[hidden])
Date: 2011-08-26 09:48:00


On Fri, Aug 26, 2011 at 10:02 AM, Alejandro Cabrera
<cpp.cabrera_at_[hidden]> wrote:
>
> Phil Endecott-48 wrote:
>>
>> There is still no "adaptor" functionality, so I can't mmap() a file to
>> use as the bloom filter's raw content, as I might want to do for e.g. a
>> spellcheck, URL blocklist, etc. etc.
>>
>
> Could you describe this is more detail? I am familiar with the mmap()
> interface, but how would one go about providing an adaptor so that mmap()
> could be used as the Bloom filter's raw content?

A possible solution is simply to allow the use of boost.interprocess
allocators which support memory mapped files:

http://www.boost.org/doc/libs/1_47_0/doc/html/boost/interprocess/allocator.html

HTH,

-- 
gpd

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk