PERFORMANCE: JSON vs Oj
I notice that BB make extensive use of JSON standard lib. Shouldn't be better to wire in Oj instead ?
./lib/google_bigquery/jobs.rb
job_id = JSON.parse(res.body)["jobReference"]["jobId"]
status = JSON.parse(self.get(project_id, job_id).body)
job_id = JSON.parse(res.body)["jobReference"]["jobId"]
status = JSON.parse(self.get(project_id, job_id).body)
./lib/google_bigquery/client.rb
JSON.parse(res.body)
JSON.parse(res.body)
body = JSON.parse(@results.body)
body = JSON.parse(res.body)
./lib/active_record/connection_adapters/bigquery_adapter.rb
json = JSON.parse(file.read)
... have a look at some gists
@lgs , interesting, it's almost twice fast! it could be a good alternative
Has there been any work done on Oj implementation by anyone?
Hello @otobrglez , there has been no progress on this. It seems to be a really good alternative, but right now I don't have the time to work on this. If you are interested maybe you could implement Oj in BigBroda ? , I will be happy to merge any progress on this.
Best regards