]> cat aescling's git repositories - mastodon.git/commit
Optimize uri normalization (#4212)
authorThibG <thib@sitedethib.com>
Sat, 15 Jul 2017 15:24:35 +0000 (17:24 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 15 Jul 2017 15:24:35 +0000 (17:24 +0200)
commit05cd37097c134d559550adca6cd17cf7578be94b
treee1f63211b05177f1eaf9b56b360717455ed7dff5
parentbd915d9398816fd1fb44645eb6d7e2c9df0e6388
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
Gemfile
Gemfile.lock
app/lib/tag_manager.rb
app/services/concerns/author_extractor.rb
app/services/fetch_remote_status_service.rb
app/workers/pubsubhubbub/delivery_worker.rb