Skip to content
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

Make HttpOutput.println() simpler and faster #12530

Open
wants to merge 4 commits into
base: jetty-12.1.x
Choose a base branch
from

Conversation

lorban
Copy link
Contributor

@lorban lorban commented Nov 13, 2024

This PR improves HttpOutput.println() by simplifying it, making it faster in most cases and fixes a too early buffer release.

@lorban lorban self-assigned this Nov 13, 2024
}
finally
{
out.release();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the above write() call is async, out.release() may be called before the write is done.

@lorban lorban requested review from gregw, joakime and sbordet November 13, 2024 10:16
@joakime
Copy link
Contributor

joakime commented Jan 7, 2025

@lorban might want to merge from base jetty-12.1.x on this PR, and then address the changes requested.

@lorban
Copy link
Contributor Author

lorban commented Jan 8, 2025

@joakime I merged 12.1.x, but I'll resume working on this once the broken tests in #12635 are fixed.

@joakime joakime marked this pull request as draft January 15, 2025 21:56
@gregw
Copy link
Contributor

gregw commented Mar 13, 2025

@lorban status report?

@lorban
Copy link
Contributor Author

lorban commented Mar 13, 2025

@gregw this can now be resumed, so I'm going to refresh my mind then finalize it.

@lorban lorban force-pushed the experiment/jetty-12.1.x/faster-HttpOutput-print branch from 77cd88b to 7ab7eb9 Compare March 18, 2025 13:20
lorban added 2 commits March 18, 2025 14:22
Signed-off-by: Ludovic Orban <[email protected]>
@lorban lorban force-pushed the experiment/jetty-12.1.x/faster-HttpOutput-print branch from 7ab7eb9 to 5f943dc Compare March 18, 2025 13:34
@lorban lorban changed the title Improve HttpOutput.print() Make HttpOutput.println() simpler and faster Mar 18, 2025
@lorban lorban requested review from gregw and sbordet March 18, 2025 13:36
@lorban lorban marked this pull request as ready for review March 18, 2025 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🏗 In progress
Development

Successfully merging this pull request may close these issues.

4 participants