Closed leon-barrett closed 8 years ago
I ran into this StackOverflowError
when I was using into
. I think this is a simple, efficient fix.
I can see that using a list
for accumulation might be more efficient than using a vector
, but it would reverse outputs, and that might surprise users. Using a vector
is probably efficient enough to conj
to, right?
Thanks Leon. :)
Er, this patch breaks the tests. Reverting; I'll see if I can find a different solution.
Oh, really? It passed lein test
for me. What fails?
group-by-spec explodes for some reason.
I think group-by
doesn't quite fulfill the contract--it assumes that each input works as a combiner-identity
. I have another change to fix it. Please stand by.
Fixed! See de2986f
Ah, just so, nicely. edit: Thanks!
t/into used concat in a way that would cause stack overflows with large numbers of chunks.