salemove / freddy

Messaging api supporting request-response and acknowledgements.
MIT License
9 stars 0 forks source link

Use Oj for faster json parsing #21

Closed indrekj closed 8 years ago

indrekj commented 8 years ago

100K dump/parse events: json: 1.530000 0.010000 1.540000 ( 1.534910) oj: 0.630000 0.010000 0.640000 ( 0.628800)

urmastalimaa commented 8 years ago

+1

indrekj commented 8 years ago

Actually wait a bit with this

indrekj commented 8 years ago

Added Oj symbol_keys instead of using Symbolizer. it is lot faster. Before this PR (100K events dump->parse->symbolize): 2.760000 0.030000 2.790000 ( 2.789097)

After this: 0.790000 0.020000 0.810000 ( 0.808356)