[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Slow IO reading SPICE file ...



Just a quick comment - reading a SPICE file or any other non-LISP file
can be helped by making your own readtable. Instead of:

   (IF (is-comment-line? NL)             
          (SETQ NLdel (Delete-unwed-chars NL))
          (SETQ NLdel NL)) 
used to remove comments or other special LISP characters -
bash the readtable first and just use read or read-from-string ..

  (let ((readtable (copy-readtable))
     ...
    (set-syntax-from-char #\: #\space)
    (set-syntax-from-char #\| #\space)
    ...
    (read-from-string ... )

	etc etc

Martin M.