-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(http): Use query string helper #2348
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you for the great work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've been very strict about Display
performance so this is an unacceptable regression. Since query_string_builder
cannot be made lazy (a requirement for us) I propose vendoring a similar API, without allocations. We can iterate on such an API on Discord
Author of the library here. I'd love to understand the use case. Is this simply about deferring the call to |
while i agree with the (arguably little) performance penalty of using this method, i think we need to consider the 20/80 rule here while a simple change from not to mention, i feel that this goes beyond the scope of twilight, if we can find a library that fits our criteria better or if someone volunteers to write such a library, i agree that we should use that library instead |
My usage of "lazy" was not quite correct. What I meant is that we want to avoid creating temporary |
Thanks for clarifying! I was experimenting with some deferred rendering versions of the builder but it inevitably ends up requiring lifetime constrains. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just some code style questions.
This is created based on the discussion here as well as here.