haskell / haskell/text

Don't use streams and fusion

Open
#513 2 comments 2 reactions 0 assignees View on GitHub
internal performance
Dominant language
Haskell
Stars
421
Forks
163
PR merge metrics
No merged PRs in 30d

Description

The documentation states

> Starting from @text-1.3@ fusion is no longer implicit

However, many functions still use `Stream` internally, even thought they would probably run a lot faster without it. It is much more efficient to work on the underlying bytes instead of decoding and encoding to and from UTF-32 through `Stream`. Some functions that use `Stream` include `cons`, `snoc`, and `isPrefix`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.