mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
PERF: Use Oj for serializing JSON. (#7820)
This commit is contained in:
@ -1,4 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
Oj::Rails.set_encoder()
|
||||
Oj::Rails.set_decoder()
|
||||
Oj::Rails.optimize()
|
||||
|
||||
# Not sure why it's not using this by default!
|
||||
MultiJson.engine = :oj
|
||||
|
Reference in New Issue
Block a user