Skip to content

Conversation

@karlseguin
Copy link
Collaborator

Common cases, text/html, text/xml and text/plain parse about 2x faster. Other cases are about 30% faster.

Support quoted attributes, i.e. charset="utf-8" & valid escape sequences. This potentially requires allocation, thus Mime.parse now takes an allocator.

Stricter validation around type/subtype based on RFC.

More tests.

Replace Mime.eql with isHTML(). Equality is complicated and was previously incorrect (it was case sensitive, it should not be). Since we currently only use isHTML-like behavior, built a (faster) method specifically for that.

Common cases, text/html, text/xml and text/plain parse about 2x faster. Other
cases are about 30% faster.

Support quoted attributes, i.e. charset="utf-8" & valid escape sequences. This
potentially requires allocation, thus Mime.parse now takes an allocator.

Stricter validation around type/subtype based on RFC.

More tests.

Replace Mime.eql with isHTML(). Equality is complicated and was previously
incorrect (it was case sensitive, it should not be). Since we currently only
use isHTML-like behavior, built a (faster) method specifically for that.
zig build test can pass, but zig build run won't even compile. // TODO: fix.
@krichprollsch krichprollsch self-requested a review February 10, 2025 07:58
@krichprollsch krichprollsch merged commit 8427602 into lightpanda-io:main Feb 10, 2025
9 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 10, 2025
@karlseguin karlseguin deleted the mime branch February 10, 2025 08:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants