Fork me on GitHub
#graalvm
<
2023-01-11
>
emilaasa04:01:57

I'm looking to use a clojure library in a CLI that has a caching mechanism, which is used in a long running server process. In that context it makes perfect sense, but in the CLI it's only bloating my binary. I have access to all the library source code, and can make modifications there. Is there a way I could conditionally control if it gets included in the binary?

emilaasa04:01:12

#ifdef style

emilaasa04:01:59

duckie One solution is to move the invocation of the caching to a separate ns, and then require the un-cached variant in the cli code.