Hi Pawel,

I'll take a look at the code later, but did that 21 seconds include startup
time for the interpreter?

On Thu, Mar 18, 2021, 9:24 AM Pawel Mosakowski <[email protected]> wrote:

> Hello,
>
> I am a Racket beginner and I have come across this article:
>
> <http://goog_416028503>
> https://benhoyt.com/writings/count-words/
>
> This is my attempt at solving the challenge:
>
> <http://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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/118c1340-66d1-421d-92a4-6b66c56cb88fn%40googlegroups.com
> <https://groups.google.com/d/msgid/racket-users/118c1340-66d1-421d-92a4-6b66c56cb88fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAE8gKoego85qz3O%2B4-PMq-YpX2ygmXEW3a62asYO5e_hxANZ0A%40mail.gmail.com.

Reply via email to