Closed ajalt closed 4 months ago
Interesting.
As shown in https://github.com/ajalt/clikt/issues/507, the fastutil dependency is over 6MB in size. This dependency is only used in a single line.
Moreover, it isn't compatible with K2 if use KMP, see https://youtrack.jetbrains.com/issue/KT-66723 (but I've written a workaround).
Looking forward to this 🤟 (trying to use Clikt in Lambda function)
All hail the good folk in the Markdown team. Please consider merging this lovely request & doing a new release 😅
As shown in https://github.com/ajalt/clikt/issues/507, the fastutil dependency is over 6MB in size. This dependency is only used in a single line.
This PR removes that dependency and uses the same
Stack<Int>()
on JVM as on the other platforms.To make sure this doesn't affect performance, I used the following JMH benchmark that converts the
gitBook.md
file from the test data to html:Performance on
master
, with fastutilIntStack
:Performance after this PR, with
Stack<Int>()
:According to this benchmark, the change has no performance impact.