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

Unroll fn calls to local bindings and keywords #502

Closed
borkdude opened this issue Jan 15, 2021 · 0 comments
Closed

Unroll fn calls to local bindings and keywords #502

borkdude opened this issue Jan 15, 2021 · 0 comments

Comments

@borkdude
Copy link
Collaborator

This should give a speedup for the following case:

$ tmp/master "(time (loop [val 0 cnt 1000000] (let [f (fn [_])] (f 1)) (if (pos? cnt) (recur (inc val) (dec cnt)) val)))"
"Elapsed time: 1352.282812 msecs"
1000000
$ tmp/unroll-local-sym-call "(time (loop [val 0 cnt 1000000] (let [f (fn [_])] (f 1)) (if (pos? cnt) (recur (inc val) (dec cnt)) val)))"
"Elapsed time: 1253.399457 msecs"
1000000
borkdude added a commit that referenced this issue Jan 15, 2021
@borkdude borkdude changed the title Unroll fn calls to local binding Unroll fn calls to local bindings and keywords Jan 16, 2021
borkdude added a commit that referenced this issue Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant