Hello,

I am a Racket beginner and I have come across this article:

<goog_416028503>
https://benhoyt.com/writings/count-words/

This is my attempt at solving the challenge:

<goog_416028502>
https://pastebin.com/kL16w5Hc

However when I have benchmarked it, it takes ~21 seconds to run compared to 
the Python and Ruby versions which take around 3-4 seconds.

I understand that both Ruby and Python probably have the string operations 
and hash tables implemented in optimized C but is there anything I can do 
to improve performance of my program?

Many thanks for all help and suggestions.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/118c1340-66d1-421d-92a4-6b66c56cb88fn%40googlegroups.com.

Reply via email to