From: Josef 'Jupp' SCHUGT Date: 2003-12-12T07:19:08+09:00 Subject: Re: [Q] Fast loading of BIG data structures Hi! * Steven Lumos; 2003-12-11, 01:50 UTC: > > I have a (really) big data structure, which looks like: > > Features = [ > ["feature", ["parent1", "parent2"], {:C1 => [0.0, (7 more)], :C2 => ...}], > ...a LOT more (like 2500) lines... > ] > > My question is: Is there an even faster way to load a big structure > than this? Special purpose C extension. Not that I recommend it in general (leave alone: like it) but sometimes hand-optimized C code is the best solution at hand. Josef 'Jupp' SCHUGT -- http://oss.erdfunkstelle.de/ruby/ - German comp.lang.ruby-FAQ http://rubyforge.org/users/jupp/ - Ruby projects at Rubyforge