Commit aa00c03
CLJS-1932: Self-host: Perf regression macroexpand-check
Addresses a self-hosted perf regression obtaining
cljs.spec/macroexpand-check.
Previously for every macroexpansion, if cljs.spec was loaded, it
would build a map of all of the vars in that namespace and then
get the the var for macroexpand-check from that map.
This revision avoids building the map upon every check, instead
performing a cheaper find-ns-obj check to see if cljs.spec is loaded
and if so, performing the same logic but within a delay so as to
cache the result.1 parent d265570 commit aa00c03
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2941 | 2941 | | |
2942 | 2942 | | |
2943 | 2943 | | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
2944 | 2950 | | |
2945 | 2951 | | |
2946 | 2952 | | |
| |||
2952 | 2958 | | |
2953 | 2959 | | |
2954 | 2960 | | |
2955 | | - | |
| 2961 | + | |
2956 | 2962 | | |
2957 | 2963 | | |
2958 | 2964 | | |
| |||
0 commit comments