-
Notifications
You must be signed in to change notification settings - Fork 93
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
decimal is quadratic #217
Comments
phadej
added a commit
to haskell/aeson
that referenced
this issue
Jun 9, 2023
More fore: Drop `attoparsec` dependency alltogether. We parse scientific from Text manually now. Notice, `scientific` parser in `attoparsec` is quadratic (uses `decimal`). haskell/attoparsec#217
phadej
added a commit
to haskell/aeson
that referenced
this issue
Jun 9, 2023
More fore: Drop `attoparsec` dependency alltogether. We parse scientific from Text manually now. Notice, `scientific` parser in `attoparsec` is quadratic (uses `decimal`). haskell/attoparsec#217
phadej
added a commit
to haskell/aeson
that referenced
this issue
Jun 9, 2023
More fore: Drop `attoparsec` dependency alltogether. We parse scientific from Text manually now. Notice, `scientific` parser in `attoparsec` is quadratic (uses `decimal`). haskell/attoparsec#217
phadej
added a commit
to haskell/aeson
that referenced
this issue
Jun 9, 2023
More fore: Drop `attoparsec` dependency alltogether. We parse scientific from Text manually now. Notice, `scientific` parser in `attoparsec` is quadratic (uses `decimal`). haskell/attoparsec#217
I suppose this is this function? attoparsec/Data/Attoparsec/Text.hs Lines 312 to 315 in c7ffdbe
|
@andreasabel yes, but also other versions in |
JonathanLorimer
pushed a commit
to JonathanLorimer/aeson
that referenced
this issue
Aug 7, 2023
More fore: Drop `attoparsec` dependency alltogether. We parse scientific from Text manually now. Notice, `scientific` parser in `attoparsec` is quadratic (uses `decimal`). haskell/attoparsec#217
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when doubling the size of input the time quadruples.
Tested using
cabal build --write-ghc-environment-files=always
, and then loading the library intorepl
. So the important parts are not interpreted.In comparison,
read
is almost instantThe text was updated successfully, but these errors were encountered: