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

REST Client - Avoid creating a field for NOOP HeaderFiller #46227

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

gsmet
Copy link
Member

@gsmet gsmet commented Feb 12, 2025

And move the HeaderFiller to a static field as from what I can see, it's never dependent of the current invocation.

It should make the REST Client calls a bit more efficient and also the bytecode as we won't create a field in the most common case of having a NOOP.

It won't make a huge difference but it's free so why not...

@geoand I would appreciate you having a look at this one - mostly the move to static. I have checked the code and I see no reason why this wouldn't be something static, given we just create a new instance of this thing.

I noticed that while having a closer look at #45631 .

And move the HeaderFiller to a static field as from what I can see, it's
never dependent of the current invocation.
Copy link
Contributor

@geoand geoand left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link

quarkus-bot bot commented Feb 12, 2025

Status for workflow Quarkus CI

This is the status report for running Quarkus CI on commit 6c0ce18.

✅ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

You can consult the Develocity build scans.

@gsmet gsmet merged commit acb9e0f into quarkusio:main Feb 12, 2025
30 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.21 - main milestone Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants