[erlang-questions] Help with storing data in memory

Max Lapshin <>
Tue Mar 23 12:11:05 CET 2010


On Tue, Mar 23, 2010 at 2:04 PM, Bernard Duggan <> wrote:
> On 23/03/2010 8:27 PM, Max Lapshin wrote:
>> I don't know what to do. When I works the same feature on ObjectiveC,
>> there was a ring buffer in memory, but Erlang isn't suitable for
>> such structures.
> I implemented a ring buffer just the other day using the array module.
> Seems to work fine, though I don't claim to have benchmarked the
> performance, and I know access isn't exactly O(1) as it is in a "real"
> array.  Still, it may be suitable for what you need.
>

Ok, I will benchmark. I'm going also to test what overhead takes ets
to copy each binary.


More information about the erlang-questions mailing list