[erlang-questions] Help with storing data in memory
Tue Mar 23 12:04:34 CET 2010
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.
More information about the erlang-questions