in reply to Re: grep return the index instead of the element content, and its speed
in thread grep return the index instead of the element content, and its speed
Hi ikegami,
Thank you your quick reply.
Question for your update: why the for loop version use much less memory?
Also, will the use of direct access the array index make the grep slower?
(* the speed is much important than the memory as I need to repeat this action with thousand times, and the string in the array for searching usually has hundred of words...)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: grep return the index instead of the element content, and its speed
by ikegami (Patriarch) on Feb 28, 2008 at 10:30 UTC |