-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow decoding performance #236
Comments
You can find samples of the CBOR-encoded cache files, accompanied by versions in the CBOR diagnostic format, in Dhall's acceptance test suite, for example: |
And here's an interesting heap memory profile, that might indicate a space leak? https://discourse.dhall-lang.org/t/high-memory-use-when-decoding-dhall-expressions/171 For a binary of about 5 MB, |
Thanks for filing this, @sjakobi! |
Here are larger files that will be useful for benchmarking purposes:
|
@bgamari: Here's a version of the larger file that should work with newer Dhall versions (including 12209b260e02c107d04052e323311ab8ed429652018f9d2ed3610ff2b8dfc5f064a0.gz |
The current state of things:
|
dhall
usescborg
to cache imported Dhall expressions. We've been getting several reports that the decoding of these caches is slower than expected. The decoding speed we're seeing is about 10 MB/s which seems slow.1. What kind of decoding speed should we expect from
cborg
?Profiles of the
dhall
code end up pointing mostly atgetDecodeAction
anddeserialiseIncremental
. The Core seems fairly impenetrable to us.2. Do you have a suggestion how to better figure out what's taking so much time?
If you want to take a look at the code, the main entry point is
decodeExpression
and most of the decoding logic is indecodeExpressionInternal
:The text was updated successfully, but these errors were encountered: