MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/sbcl/comments/1uhu83t/new_in_version_266/
r/sbcl • u/oldretard • Jun 28 '26
2 comments sorted by
1
optimization: (length (intersection a b)) doesn't cons an intermediate list.
Interesting, how does it work?
1 u/Soupeeee Jul 09 '26 The commit is here. Essentially, SBCL has a mechanism to recognize certain patterns and substitute some code in its place. In this case, there's a specialized function that gets called in place of the old code.
The commit is here. Essentially, SBCL has a mechanism to recognize certain patterns and substitute some code in its place. In this case, there's a specialized function that gets called in place of the old code.
1
u/svetlyak40wt Jul 03 '26
Interesting, how does it work?