Benchmarks requiring -fspec-constr-recursive=16
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- haskell
- Domain
- performance
Research direction
The issue lists benchmark cases for UTF-8 decoding, grouping, parsing, folding, splitting, and repeated operations, but names no files or tests. Start by locating these benchmark definitions and comparing their performance with and without -fspec-constr-recursive=16. Done means identifying a general optimization that improves the cases without excessive code growth, memory use, or compile time; the issue gives no acceptance test.
Written by the indexing model from the issue text.
Description
Some folding/grouping benchmarks (consumer loop) benchmarks are significantly improved by using -fspec-constr-recursive=16. Maybe some more intelligent optimizations can be done in general for these cases so that we do avoid bloating code and using too much memory and time during compilation.
Utf8 decoding:
splitOnSeqUtf8 :: String -> Handle -> IO Int
unicode encode/decode, especially decode
Grouping/Parser/fold/split:
, (SpaceO_1, benchIOSink value "many" many)
, (SpaceO_1, benchIOSink value "some" some)
, (HeapO_n, benchIOSink value "takeEQ" $ takeEQ value)
, (SpaceO_1, benchIOSink value "takeWhileP" $ takeWhileP value)
, (SpaceO_1, benchIOSink value "wordBy" $ wordBy value)
, (SpaceO_1, benchIOSink value "groupByRolling" groupByRolling)
, mkBench "takeEndBySeq KR abcdefghi" env $ \inh _ ->
, mkBenchSmall "interpose . splitOn" env $ \inh outh ->
foldMany/groupsOf/ChunksOf
Some of the benchmarks performing an operation multiple times:
"dropWhile-false" (dropWhileFalse value 4)
, benchIOSink value "tee" (transformTeeMapM 4)
benchIOSink value "intersperse" (intersperse value 4)
- Dominant language
- Haskell
- Stars
- 926
- Forks
- 71
- Avg merge
- 6h 49m
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from composewell/streamly
-
takeInterval yields nothing, dropInterval drops nothingPossibly taken @GuillaumedeVolpiano claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
composewell/streamly#3271 ·
-
Parser: many accepts input that ends inside an elementPossibly taken @GuillaumedeVolpiano claimed this 1 day ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 52/100
composewell/streamly#3270 ·
-
aspect:api
Difficulty 4/5 1-2 days Newbie friendliness 48/100
composewell/streamly#3206 ·
-
api:breaking aspect:api aspect:filesystem
Difficulty 4/5 1-2 days Newbie friendliness 35/100
composewell/streamly#3203 ·
-
type:performance
Difficulty 4/5 3-5 days Newbie friendliness 32/100
composewell/streamly#3200 · 2 comments ·
All issues in composewell/streamly
Similar issues
-
bug desktop
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
simplex-chat/simplex-chat#8291 ·
Maintainers usually reply within 1 day
-
[BUG]: C# programs with top-level statements fail to compilePossibly taken @AsyncNigam claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
compiler-explorer/compiler-explorer#9625 · 1 comment ·
Maintainers usually reply within 1 day
-
needs triage type: enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 3 days
-
reflex-0.10Open
Difficulty 1/5 Under an hour Newbie friendliness 62/100
commercialhaskell/stackage#8180 ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OpenZeppelin/canton-contracts#140 ·
Maintainers usually reply within 1 day