From: ptkwt@...1.aracnet.com (Phil Tomson) Date: 2003-01-12T10:27:32+09:00 Subject: Re: Ruby: politics & performance [long] In article <200301111701.12221.transami@transami.net>, Tom Sawyer wrote: >On Saturday 11 January 2003 01:47 pm, Louis Krupp wrote: > >Louis Krupp, > >one option might be to use hashes in place of arrays. you can index them >yourself. instead of [a, b, c] use {0=>a, 1=>b, 2=>c}. hashes, i was suprised >to discover, are around 12x faster than arrays. > except that he's talking about list_append as used in the parser... I don't think using hashes will help at all. It seems that the issue has to do with node lists which are constructed by the parser. Phil -- "Or perhaps the truth is less interesting than the facts?" Amy Weiss (accusing theregister.co.uk of engaging in 'tabloid journalism') Senior VP, Communications Recording Industry Association of America