shadow-cljs

https://github.com/thheller/shadow-cljs | https://github.com/sponsors/thheller | https://www.patreon.com/thheller
wilkerlucio 2020-12-19T00:32:53.074800Z

(shadow/browser-repl {:devtools {:repl-timeout 3000000}})

2020-12-19T08:53:24.077Z

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?

thheller 2020-12-19T09:51:34.077500Z

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

2020-12-19T19:46:46.078300Z

I was comparing the output size given by

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

thheller 2020-12-19T20:56:23.078900Z

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.