Skip to content

Conversation

@karlseguin
Copy link
Collaborator

(I accidentally deleted my branch on github, and it closed the original PR (#410))

1 - Use getOrPut to avoid making 2 map lookups where possible.

2 - Use an arena allocator for Values, which makes memory management simpler.

3 - Because of #2, we no longer need to allocate key or values which don't need
to be unescaped. The downside is that the input string has to outlive the
query.Values (but I think this is currently always the case)

4 - Optimize unescape logic & allocations

5 - Improve test coverage

1 - Use getOrPut to avoid making 2 map lookups where possible.

2 - Use an arena allocator for Values, which makes memory management simpler.

3 - Because of lightpanda-io#2, we no longer need to allocate key or values which don't need
    to be unescaped. The downside is that the input string has to outlive the
    query.Values (but I think this is currently always the case)

4 - Optimize unescape logic & allocations

5 - Improve test coverage
@krichprollsch krichprollsch merged commit 50b53b0 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 url_query branch February 11, 2025 03:16
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