On Fri, 4 Nov 2016 04:03:53 +0100,
meino.cra...@gmx.de wrote:

>I have to break down input from textfiles in lists. Due to
>missing formatting symbols like ";" (csv) I have do it more
>"analogous". ;)
>
>It can be done by regex and it can be done by line splitting,
>procesing the results (removing superflous whitespace) and 
>selecting from that result what I need.
>
>There are lot of lines to process....
>
>How fast are regex in racket in comparison to the other way to
>implement the whole thing?

If the matching is complicated, regex probably will be faster than
what you could write yourself.

I don't have numbers handy, but IME Racket's regex - once the data is
in memory - is comparable in speed to Perl's.   For technical reasons,
Racket's I/O is somewhat slower than Perl's, and that can make a
noticable difference with very large files. 
[But if you're still talking about ~20K lines, that really isn't very
"large" and the difference likely would be hard to notice without
timing it.]

George

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to