Skip to content

Commit

Permalink
use oj for faster json
Browse files Browse the repository at this point in the history
  • Loading branch information
estiens committed Nov 16, 2022
1 parent 91817a4 commit 75e4706
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
7 changes: 4 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ gem 'good_job', '~> 3.4'
gem 'haml-rails', '~> 2.1'
gem 'httparty', '~> 0.20'
gem 'jbuilder', '~> 2.11'
gem 'newrelic_rpm'
gem 'newrelic_rpm', "~> 8.12"
gem 'oj', '~> 3.1'
gem 'puma', '~> 5.6'
gem 'rack-attack', '~> 6.6'
gem 'rack-cors', '~> 1.1', require: 'rack/cors'
gem 'redis', '~> 5.0'

group :production do
gem 'fly-ruby'
gem 'fly-ruby', "~> 0.5"
end

group :development do
Expand All @@ -29,6 +30,6 @@ group :development, :test do
gem 'better_errors', '~> 2.9'
gem 'binding_of_caller', '~> 1.0'
gem 'pry-rails', '~> 0.3'
gem 'rspec-rails'
gem 'rspec-rails', "~> 6.0"
gem 'rubocop', '~> 1.36'
end
8 changes: 5 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ GEM
racc (~> 1.4)
nokogiri (1.13.9-x86_64-linux)
racc (~> 1.4)
oj (3.13.23)
parallel (1.22.1)
parser (3.1.2.1)
ast (~> 2.4.1)
Expand Down Expand Up @@ -273,20 +274,21 @@ DEPENDENCIES
binding_of_caller (~> 1.0)
chronic (~> 0.10)
derailed_benchmarks (~> 2.1)
fly-ruby
fly-ruby (~> 0.5)
good_job (~> 3.4)
haml-rails (~> 2.1)
httparty (~> 0.20)
jbuilder (~> 2.11)
newrelic_rpm
newrelic_rpm (~> 8.12)
oj (~> 3.1)
pg (~> 1.4)
pry-rails (~> 0.3)
puma (~> 5.6)
rack-attack (~> 6.6)
rack-cors (~> 1.1)
rails (~> 7.0)
redis (~> 5.0)
rspec-rails
rspec-rails (~> 6.0)
rubocop (~> 1.36)
stackprof (~> 0.2)

Expand Down
2 changes: 2 additions & 0 deletions config/initializers/requires.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
require Rails.root.join('lib/2022/setup.rb')
require Rails.root.join('scrapers/json_match.rb')

Oj.optimize_rails

0 comments on commit 75e4706

Please sign in to comment.