Re: Test file in Corman
Edi Weitz <[email protected]>
| Newsgroups | gmane.lisp.corman |
|---|---|
| Message-ID | <[email protected]> |
Karsten <[email protected]> writes: > I can't explain why the file takes so long to load in Corman but i'd > like to propose an alternative. > > I would create - and did this with your regex module -- a file just > with the data in sexps, no cl code, e.g > (1 "\"the quick brown fox\" =~ /the quick brown fox/" "the quick brown > fox" nil nil nil nil "the quick brown fox" nil 1 0 "the quick brown > fox" (nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil)) > Then write a simple function that reads this file into *testdata* or > whatever variable. > > To execute the regex tests in memory constraines lisps I wrote a > function that reads the file line by line, executes the tests, gc's > until the end is reached. Thanks for the suggestion. I'll do that with the next release of CL-PPCRE. Cheers, Edi. ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/FpY02D/vN2EAA/xGHJAA/SyjtlB/TM ---------------------------------------------------------------------~-> To unsubscribe from this group, send an email to: [email protected] Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/