>>>>> "jon" == jon  <[EMAIL PROTECTED]> writes:

    jon> anybody here knows other way to parse float other than
    jon> read-from-string or atof using alien? my project involves
    jon> reading thousands of floats from the output of about hundred
    jon> thousand spice simulations. read-from-string is obviously too
    jon> slow, while alien-ing atof gc's a lot. parse-float doesn't

It's not obvious to me that read-from-string is too slow.

An alternative is to write some C function that can suck in all the
numbers (assuming that C can do it faster than Lisp) into an array.
Then use FFI to call this function to get the array.  

But if reading the numbers and not processing the numbers represents
the main bottleneck, perhaps a different language would be the better
choice.

Ray


Reply via email to