Skip to content
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

Scientific parser #2410

Closed
wants to merge 8 commits into from
Closed

Scientific parser #2410

wants to merge 8 commits into from

Conversation

rnjtranjan
Copy link
Collaborator

@rnjtranjan rnjtranjan added this to the 0.9.1 milestone Jun 2, 2023
@adithyaov adithyaov force-pushed the scientific_parser branch 3 times, most recently from d1b99c9 to df69a16 Compare June 24, 2023 08:08
streamly.cabal Outdated Show resolved Hide resolved
src/Streamly/Data/Unicode/Parser/Extra.hs Outdated Show resolved Hide resolved
src/Streamly/Internal/Data/Unicode/Parser/Extra.hs Outdated Show resolved Hide resolved
@rnjtranjan
Copy link
Collaborator Author

Benchmarks:
#No INLINE
scientific: OK (0.16s)
11.1 ms ± 1.1 ms

#With INLINE
scientific: OK (0.27s)
8.70 ms ± 573 μs

streamly.cabal Outdated Show resolved Hide resolved

-- | Takes a fold method, and uses it with a default source.
{-# INLINE benchIOSinkc #-}
benchIOSinkc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably don't need this.

@harendra-kumar
Copy link
Member

We can keep the tests for scientific and remove the implementation. Use the number parser for tests.

@harendra-kumar
Copy link
Member

The number parser covers this functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants