These are chat archives for ManageIQ/manageiq/performance

7th
Dec 2016
Daniel Berger
@djberg96
Dec 07 2016 16:49
Came across this, wonder if it could be useful to us: https://github.com/JacisNonsense/SCON
Chris Arcand
@chrisarcand
Dec 07 2016 16:51
13 commits, last Sept 2015. Either it works really, really well or we’re asking to maintain something it looks like.
Daniel Berger
@djberg96
Dec 07 2016 16:54
Maybe, but there are no outstanding issues
hash = {:test => true, :greeting => "Hello World"}
scon_string = SCON.generate!(hash)
ObjectSpace.memsize_of(hash) #=> 232
ObjectSpace.memsize_of(scon_string) #=> 169
Chris Arcand
@chrisarcand
Dec 07 2016 16:58
Neato
Daniel Berger
@djberg96
Dec 07 2016 17:02
That's not a great example, actually, since it's such a small hash
It's really just Marshal.dump, the advantages would come in larger hashes with identical keys.
Keenan Brock
@kbrock
Dec 07 2016 18:44
After comparing scon to json, she also compared to http://msgpack.org/ (non-tuned - treated as bytes) and http://cbor.io/. interesting.
Ladislav Smola
@Ladas
Dec 07 2016 18:46
I wonder how much processing time would this add to refresh?
I sense :memory_optimized settings here :-D
Keenan Brock
@kbrock
Dec 07 2016 18:47
lol
{:turbo => true}
Ladislav Smola
@Ladas
Dec 07 2016 18:47
:-)
Keenan Brock
@kbrock
Dec 07 2016 18:47
looks like node also has scon - not sure if it is the same thing.