Hello,
I have found that using ppx_deriving_yojson increases the size of the output executable by the order of 20 megabytes.
Why is this happening and is there anything I can do about it?
New empty project
$ dune init project hello_world
$ dune build
$ ll _build/default/bin/main.exe
... 1,5M ... _build/default/bin/main.exe*
Add ppx_deriving_yojson
$ tail bin/dune -n 2
(libraries ppx_deriving_yojson ppx_deriving_yojson.runtime)
(preprocess (pps ppx_deriving_yojson)))
$ dune build
$ ll _build/default/bin/main.exe
... 21M ... _build/default/bin/main.exe*
21 MB!