There is <https://github.com/PaulWoitaschek/Slimbe...
# announcements
d
There is https://github.com/PaulWoitaschek/Slimber library. Readme states "no-cost-effect" for non-debug mode, but I can't understand how/why it works. As I can see it rely on
ifPlanted
function as an optimization helper, which in turn rely on
Timber.treeCount() != 0
. But
treeCount
(i.e.
ArrayList.size()
) is not a constant value, and compiler cannot be sure which value
treeCount
will have at runtime to eliminate anything.