-
Notifications
You must be signed in to change notification settings - Fork 1
Optimize persistent connection registry for 8-10% performance gains #23
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
base: master
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 16252854548Details
💛 - Coveralls |
| # ... make some requests ... | ||
|
|
||
| # Close all persistent connections and clear caches | ||
| client.truncate! |
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.
А почему это называется truncate? Мб лучше как-то типа reset?
|
|
||
| def get_origin(url) | ||
| HTTP::URI.parse(url).origin | ||
| origin_cache[url] ||= HTTP::URI.parse(url).origin |
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.
А если у меня урлы каждый раз будут разные (типа гет запросы с рандомным гуидом в урле) – память в итоге закончится?
Overview
compare_by_identityfor SSL certificatesregistry[origin][ssl_bucket]with flat compound keys3.1: https://www.ruby-lang.org/en/downloads/branchesBenchmarks
Look at
bin/benchmarkexecutable file.