From: John W. <jo...@ne...> - 2007-12-04 03:18:34
|
This might not be apropos, but I just came across this tech note from Allegro where they are doing a very similar thing with CL: using it to parse strings from gigantic text files. The way they combatted the performance issue was to custom-build a non-consing version of read-line. I wonder if such a thing would improve SBCL's performance in this example? http://www.franz.com/support/tech_corner/cons-tricks-121306.lhtml John On Dec 3, 2007, at 6:11 PM, David J. Neu wrote: > Many thanks for taking the time to craft a solution - it runs > extremely fast - much faster than the Python script and dramatically > reduced the number of bytes consed: > > Evaluation took: > 1.937 seconds of real time > 1.791011 seconds of user run time > 0.119532 seconds of system run time > [Run times include 0.432 seconds GC run time.] > 0 calls to %EVAL > 0 page faults and > 103,786,536 bytes consed. |