Skip to content

Conversation

@karlseguin
Copy link
Collaborator

1- Remove parser.trim, it was only being used in 1 place. All other places
are using std.mem.trim(u8, X, &std.ascii.whitespace), so i updated MIME to
use this as well

2- Use slightly more meaningful field name, i => pos, s = data

3- Leverage std.mem.indexOfScalarPos which can be more efficient for longer
inputs (since it leverages SIMD)

1- Remove `parser.trim`, it was only being used in 1 place. All other places
   are using `std.mem.trim(u8, X, &std.ascii.whitespace)`, so i updated MIME to
   use this as well

2- Use slightly more meaningful field name, i => pos, s = data

3- Leverage std.mem.indexOfScalarPos which can be more efficient for longer
   inputs (since it leverages SIMD)
@krichprollsch krichprollsch merged commit 0c1a486 into lightpanda-io:main Feb 8, 2025
9 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 8, 2025
@karlseguin karlseguin deleted the reader_tweak branch February 8, 2025 11:25
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