cljs-dev

dnolen 2025-08-05T16:32:57.074209Z

:lite-mode can run cljs.test now - new flag since dropping .toString implementations is problem depending on what you're doing, :elide-to-string

dnolen 2025-08-05T16:34:30.628399Z

(->> (map inc (range 10)) (filter even?) (partition 2) (drop 1))) is 6K brotli :lite-mode true :elide-to-string true

thheller 2025-08-05T16:38:50.133739Z

did you try :elide-to-string without :lite-mode? curious how much thats worth

dnolen 2025-08-05T16:39:26.204419Z

it seems to save about 10K by itself (before compression)

dnolen 2025-08-05T16:40:05.861209Z

you do have to be careful w/ :elide-to-string cljs.test doesn't work w/o it

dnolen 2025-08-05T16:40:35.289899Z

well it works, but it's output is not useful 🙂

thheller 2025-08-05T16:41:54.014059Z

hehe, yeah just curious how much of a difference it makes. would have guessed more than 10k but I guess its just a bunch of reused functions, so not that much overall

dnolen 2025-08-05T16:44:41.552409Z

(println (merge {:foo 1} {:bar 2})) which is kind of worse case, is 9K brotli w/ the same flags

dnolen 2025-08-05T16:47:32.135769Z

if you drop println 7K

dnolen 2025-08-05T16:47:47.755309Z

so :elide-to-string has the benefit of pay for what you use wrt. printing