From: David Landrith Date: 2003-04-18T23:27:51+09:00 Subject: Re: Need IO Optimization help On Thursday, April 17, 2003, at 02:05 PM, ahoward wrote: > On Fri, 18 Apr 2003, Brian Candler wrote: > >> the whole lot > > i've been following this discussion for a while, but can't get at all > of it > due to news server probs... > > two questions > > * have the mmap implementations also used strscan type (pointer) > iteration, or > have they been creating a new String object for each 'line'? For my application (which consists of converting a delimited ASCII file into arrays), a 'line' is an array of fields. I am using a strscan iteration to parse for record terminators and field terminators to create a new character array for each field in the line. These character arrays get accumulated into a Ruby array that represents the line. Does this answer you question? ------------------------------------------------------- David King Landrith (w) 617.227.4469x213 (h) 617.696.7133 One useless man is a disgrace, two are called a law firm, and three or more become a congress -- John Adams ------------------------------------------------------- public key available upon request