Hi all,
Ohai does not currently depend on Chef and I suspect there is a fair
On Sat, Mar 5, 2011 at 1:18 AM, Akzhan Abdulin < "> > wrote:
> I suppose that we need to
> 1) Move Chef::JSONCompat to ohai gem.
> 2) Use Ohai::JSONCompat everywhere we need to.
> 3) Switch to yajl-ruby as last step.
bit of weight behind keeping it that way (I'm not even sure from
the above whether "move Chef::JSONCompat to ohai" means introducing
such a dependency or not).
I'd like to see both Ohai and Chef move to using yajl-ruby as a
wholesale replacement for the json gem (not using a compatability mode
and not offering to fall-back to json gem). My impression is that
yajl-ruby is more stable in terms of API and I have observed
reasonable speed and memory-use improvements over json gem when
testing it.
The tricky part of such a move is the interaction with Merb in the
Chef server, where Merb currently uses the json gem and does JSON
serialization auto-magically.
I'd put the priority fairly high since we believe that switching to
yajl will remove compatibility/version issues that we've seen with the
json gem and will provide performance improvements.
+ seth
--
Seth Falcon | Senior Software Design Engineer | Opscode | @sfalcon
Archive powered by MHonArc 2.6.16.