Optimize uri normalization (#4212)
* Add dependency on idn-ruby to speed up URI normalization * Use normalized_host instead of normalize.host when applicable When we are only interested in the normalized host, calling normalized_host avoids normalizing the other components of the URI as well as creating a new object
Showing
- Gemfile 1 addition, 0 deletionsGemfile
- Gemfile.lock 2 additions, 0 deletionsGemfile.lock
- app/lib/tag_manager.rb 1 addition, 1 deletionapp/lib/tag_manager.rb
- app/services/concerns/author_extractor.rb 1 addition, 1 deletionapp/services/concerns/author_extractor.rb
- app/services/fetch_remote_status_service.rb 2 additions, 2 deletionsapp/services/fetch_remote_status_service.rb
- app/workers/pubsubhubbub/delivery_worker.rb 1 addition, 1 deletionapp/workers/pubsubhubbub/delivery_worker.rb
... | ... | @@ -36,6 +36,7 @@ gem 'htmlentities', '~> 4.3' |
gem 'http', '~> 2.2' | ||
gem 'http_accept_language', '~> 2.1' | ||
gem 'httplog', '~> 0.99' | ||
gem 'idn-ruby', require: 'idn' | ||
gem 'kaminari', '~> 1.0' | ||
gem 'link_header', '~> 0.0' | ||
gem 'mime-types', '~> 3.1' | ||
... | ... |
Please register or sign in to comment