Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use faster assoc in let #478

Closed
borkdude opened this issue Dec 19, 2020 · 0 comments
Closed

Use faster assoc in let #478

borkdude opened this issue Dec 19, 2020 · 0 comments

Comments

@borkdude
Copy link
Collaborator

Seems worth it:

$ time ./sci "(loop [x 1] (let [_x 1 _y 1 _z 1 _y 1] (if (< x 1000000) (recur (inc x)) [_x _y])))"
[1 1]
./sci    1.30s  user 0.08s system 99% cpu 1.389 total
$ time tmp/inline-fns "(loop [x 1] (let [_x 1 _y 1 _z 1 _y 1] (if (< x 1000000) (recur (inc x)) [_x _y])))"
[1 1]
tmp/inline-fns    1.53s  user 0.08s system 99% cpu 1.621 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant