Test file in Corman

Karsten <[email protected]>
Newsgroups gmane.lisp.corman
Message-ID <[email protected]>
Hello,

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.

if you want to speed up loading you can still create a file with
(setq *testdata* #.*testdata*) and compile that

Karsten




------------------------ 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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.