@ikitommi My concern about the size was from the perspective of delivering a very lightweight web framework (Vrac) which can compare well with others in a benchmark. I acknowledge that, in real world applications, the size difference is not as important as it may look on a benchmark.
Malli’s size is still relatively small.
initial bundle-size anaysis for cljs. related to #203
@ikitommi Note that about 200kb of the sci bundle is coming from docstrings 🙂
at least, if you bump to the newest sci
yes, updated the latest. Haven’t really studied how the dce works and how can libraries be smaller. Would be great if one could drop off whole protocol method impls if the protocol method was not used. E.g. if you don’t have any calls to the transformers, we coud remote the -transformer
methods, which is easily 30% of the whole malli.core.
most of the concerns are in separate namespaces (json-schma, human errors, inferring), but the important ones are in the core right now. But not always important 🙂
also, would be great to have a sci-lite
version without the docstrings.
maybe that can be accomplished using a goog/define
:closure-defines {"sci.foo/DOCSTRINGS" false}
made an issue for it: https://github.com/borkdude/sci/issues/352