[racket] help me speed up string split?

From: Ryan Davis (zenspider at gmail.com)
Date: Wed Jun 18 02:51:06 EDT 2014

On Jun 17, 2014, at 23:26, Robby Findler <robby at eecs.northwestern.edu> wrote:

> Could it be the float parser? Do you actually get the same floats in
> both versions?

Yup. I'm getting floats for sure.

The majority of the time in the original version was definitely being spent on string-split (and I confirmed that regexp-split is basically the same, even with bytestrings).

I found a post about regexp-split being dreadfully slow for a big string and a tiny pattern that Matt Flatt fixed a long while ago. This might be a similar edge case? big string, tiny pattern, but tons of matches?

Posted on the users mailing list.