Fork me on GitHub
#shadow-cljs
<
2020-12-19
>
Pavel Klavík08:12:24

Hi, I have just encountered the following surprising thing. When I want to encode a fixes large set (say of strings) into the code, using #{...} generates a twice as large code than (set #js [...]) which generates the set at the start. Why is that?

thheller09:12:34

are you sure its still twice as large after :advanced? that usually takes care of that?

Pavel Klavík19:12:46

I was comparing the output size given by

shadow-cljs run shadow.cljs.build-report app report.html

thheller20:12:23

hmm odd. I don't actually know what kind of code this generates. might be worth opening an issue in CLJS for if its really bad.