jon <[EMAIL PROTECTED]> writes: > anybody here knows other way to parse float other than read-from-string or > atof using alien? my project involves reading thousands of floats from > the output > of about hundred thousand spice simulations. read-from-string is > obviously too slow, > while alien-ing atof gc's a lot. parse-float doesn't parse string > floats, ffi i don't know > how to, and modifying ngspice to give something that can be done by > parse-float > is definitely the last on my list.
Is read-from-string really that slow? Have you tried profiling it to see where it's spending most of its time? You could try parsing the files directly, either by using a regular expression library like cl-ppcre or just by writing a float parser by hand. But that might not buy you much if it's just some buffering issue that's slowing you down. HTH, cbb -- 20:36:19 up 136 days, 5:31, 1 user, load average: 0.25, 0.18, 0.11
