Skip to content

Make CabalFileText to wrap a strict ByteString, not a lazy one#1468

Merged
ysangkok merged 3 commits intomasterfrom
strict-CabalFileText
Mar 3, 2026
Merged

Make CabalFileText to wrap a strict ByteString, not a lazy one#1468
ysangkok merged 3 commits intomasterfrom
strict-CabalFileText

Conversation

@Bodigrim
Copy link
Contributor

Cabal files are definitely small enough to use a strict ByteString. This eliminates one possible source of issues with lazy IO. Tackles half of #1451.

Cabal files are definitely small enough to use a strict ByteString.
This eliminates one possible source of issues with lazy IO.
@Bodigrim Bodigrim force-pushed the strict-CabalFileText branch from 75c6659 to 36f2763 Compare February 24, 2026 21:16
@Bodigrim Bodigrim requested a review from ysangkok March 2, 2026 19:37
@ysangkok ysangkok merged commit 866279e into master Mar 3, 2026
12 checks passed
@ysangkok
Copy link
Member

ysangkok commented Mar 3, 2026

Thanks. I am not so knowledgeable about which String types are most efficient at different sizes and access patterns, but I think that you probably are, so I will trust your judgment.

@ysangkok ysangkok deleted the strict-CabalFileText branch March 3, 2026 14:27
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.

2 participants