Skip to content

Minor performance improvements#60

Merged
staktrace merged 2 commits into
mainfrom
perf
Jun 23, 2025
Merged

Minor performance improvements#60
staktrace merged 2 commits into
mainfrom
perf

Conversation

@staktrace

@staktrace staktrace commented Jun 23, 2025

Copy link
Copy Markdown
Owner

Follow-up to improve performance concern raised in #58 (comment).

The original improvement proposed by @xitep effectively inlined a copy of the parse_unqualified_segment function into try_from, resulting in a faster implementation but duplicated logic. This version improves the performance by reducing unnecessary operations instead. It's not as good perf-wise but doesn't duplicate logic which is more desirable.

The callers never need the actual segment so returning
the length is more efficient.
@staktrace staktrace merged commit c24a69e into main Jun 23, 2025
5 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.

1 participant