From: Marnen Laibow-Koser Date: 2009-11-11T06:57:21+09:00 Subject: Re: Good or best way to allocate a large array Florian Gilcher wrote: > On Nov 10, 2009, at 4:50 PM, Marnen Laibow-Koser wrote: > >> Jonathan Schmidt-Domin� - Developer wrote: >>> What's about using C or C++ to allocate and deallocate the array? >> >> Unnecessary. Just use a database. > > > Why are you so insisting on a database? Because almost any array that large is better dealt with through a DB interface. > In contrast to your opinion, > there are valid cases where an in-memory array is just what you want. How about an in-memory DB? SQLite can function that way. > > Varnish for example is an interesting example that uses data structures > in that magnitude. > Varnish is a caching package, not what most people will want to implement. Besides, if the OP were implementing something like Varnish, I suspect he'd be knowledgeable enough that he wouldn't have asked the question in the first place. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org > Regards, > Florian Gilcher -- Posted via http://www.ruby-forum.com/.