-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
with-redefs doesn't redef core fns #375
Comments
I think this may be due to an optimization, but maybe that optimization isn't worth it. I'll take a look. |
Undoing the performance optimization (which is effectively the same as direct linking in Clojure):
is about 10s with the optimization and 12s without it on the JVM. In CLJS 17 vs 19s. This is on a Macbook Air which doesn't have a super powerful processor, but it's noticeable. In Clojure you see the same effect with direct linking:
Maybe sci should support |
Never mind, I found another optimization which gets back the performance up to the level it was, while fixing this issue. |
Should be fixed now in babashka master. |
Thanks!! |
Hi. I'm using with-redefs for a testing library and came across the following bug:
version
Version which comes with bb 0.1.3
platform
Mac binary
problem
with-redefs is unable to redef a clojure.core fn
repro
expected behavior
I expected to be able to redef a clojure.core fn as clojure does
The text was updated successfully, but these errors were encountered: