Skip to content

refactor: share invalid header handling#221

Merged
seanmonstar merged 1 commit into
seanmonstar:masterfrom
thaliaarchi:dedupe-invalid-header
Jun 30, 2026
Merged

refactor: share invalid header handling#221
seanmonstar merged 1 commit into
seanmonstar:masterfrom
thaliaarchi:dedupe-invalid-header

Conversation

@thaliaarchi

Copy link
Copy Markdown
Contributor

handle_invalid_char! duplicates the invalid char recovery loop at all macro expansions. Share it with a labeled block. This reduces code size by about 3KiB.

@thaliaarchi

Copy link
Copy Markdown
Contributor Author

Benchmark differences look like only noise, but you should take a look.

You'll want to ignore the indentation change in the diff.

handle_invalid_char! duplicates the invalid char recovery loop at all
macro expansions. Share it with a labeled block. This reduces code size
by about 3KiB.
@thaliaarchi thaliaarchi force-pushed the dedupe-invalid-header branch from d27d5e7 to fb28959 Compare June 23, 2026 20:54
@thaliaarchi

Copy link
Copy Markdown
Contributor Author

Spurious CI failure. Can you rerun it?

@seanmonstar seanmonstar left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I love it, thank you!

@seanmonstar seanmonstar merged commit a0fa552 into seanmonstar:master Jun 30, 2026
61 of 62 checks passed
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