Y
Hacker News
new
|
ask
|
show
|
jobs
by
tbct
197 days ago
Can you elaborate on what you're referring to? I can see performance becoming a problem if you repeatedly chain non-optimisable (in bytecode) as excluding the in place operations I believe all ops re-allocate the collection.
2 comments
neko-kai
197 days ago
Just use `.iterator` before chaining and the final collection will only be allocated once.
link
ATMLOTTOBEER
197 days ago
Ignore that person they don’t know what they’re talking about lol
link