On February 2, 2019 7:28:12 AM GMT+01:00, Alex Harsanyi
<alexharsa...@gmail.com> wrote:
>Someone asked recently for help on Reddit[1] with a Racket performance
>issue.
>The problem was they they were constructing a large list by appending
>many
>short lists repeatedly; their code was calling `(set! result (append
>result
>shortList))` in a loop and this was slow (unsurprisingly.)
In addition to the general list-processing advice they were likely given, I
suspect someone coming from Python might appreciate tconc structures. SRFI 117
is one attempt at fleshing this out into a contemporary API. But just classic
tconc and lconc are pretty useful to know and have at your fingertips.
-Thomas
--
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.