twingly / twingly-search-api-ruby

:gem: Twingly Blog Search API in Ruby
https://developer.twingly.com/
MIT License
4 stars 0 forks source link

Profile for object allocation and pick some fruit #84

Closed jage closed 5 years ago

jage commented 5 years ago

Run with

bundle exec ruby profiler/profile_search.rb

I've remove some allocation of objects:

Note that this is just for our code, I'm not meassuring Nokogiri, Faraday etc

Should be review commit by commit

Close #75

jage commented 5 years ago

If we like the idea, I can refactor, add a profiler for LiveFeed and notes in the README.

jage commented 5 years ago

I think we can do a two-step review, first look at this (search specific), if it looks good I'll add something similar for LiveFeed.

walro commented 5 years ago

Smart usage of VCR!

jage commented 5 years ago

Yeah, I'll add a README entry and add a similar livefeed profiler as well.