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

Micro optimisations in wait_for_less_busy_worker feature #2579

Merged
merged 4 commits into from Mar 17, 2021

Conversation

ghiculescu
Copy link
Contributor

@ghiculescu ghiculescu commented Mar 17, 2021

Two small things:

Two small things:

- https://github.com/puma/puma/pull/2079/files#r422738756 -> swap the order of calls so that the faster call (float comparison) runs first.
- https://github.com/puma/puma/pull/2079/files#r596114279 -> don't call `.to_f` on option that we already know is a float.
@ghiculescu ghiculescu marked this pull request as ready for review March 17, 2021 15:17
@nateberkopec nateberkopec merged commit 78cf164 into puma:master Mar 17, 2021
@ghiculescu ghiculescu deleted the patch-1 branch March 17, 2021 19:14
JuanitoFatas pushed a commit to JuanitoFatas/puma that referenced this pull request Sep 9, 2022
* Micro optimisations in `wait_for_less_busy_worker` feature

Two small things:

- https://github.com/puma/puma/pull/2079/files#r422738756 -> swap the order of calls so that the faster call (float comparison) runs first.
- https://github.com/puma/puma/pull/2079/files#r596114279 -> don't call `.to_f` on option that we already know is a float.

* Update server.rb

* Update thread_pool.rb

* Update thread_pool.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants