Issue #2892 has been updated by Markus Roberts.

Status changed from Code Insufficient to Rejected
Priority changed from High to Normal
Target version changed from Rowlf to Statler

The new yaml encoding and the PSON encoding are both significantly more 
efficient in speed and memory usage than the yaml library in use when this 
ticket was filed.  Testing this afternoon I was seeing a ~5x to ~15x speed 
improvement and a ~60% memory reduction.  This reduces the potential benefit of 
re-using the transmitted format.

Given that and some of the problems behind the idea (e.g., that 
network-serialization isn't always yaml, it could, for example, be pson or even 
marshall) I'm closing this ticket in favor of #3714.

----------------------------------------
Bug #2892: Remove unneeded YAML serialization when caching catalog in puppetd
http://projects.puppetlabs.com/issues/2892

Author: Brice Figureau
Status: Rejected
Priority: Normal
Assigned to: Markus Roberts
Category: plumbing
Target version: Statler
Affected version: 0.25.1
Keywords: pson json catalog cache serialization
Branch: tickets/master/2892


Peter Meier noticed that the puppetd catalog caching was an operation that was 
taking lots of RAM.
Analysis show that for large catalog YAML dumping consumes lots of memory 
(roughly 3x times the object to serialize).

The catalog is sent from the master to the client in serialized format (usually 
pson/json), the idea would be to directly use it as the local client cache, 
instead of re-serializing the "live" catalog.

The implementation would be:

# keep the serialized version of the catalog in the request in the REST client
# when caching the catalog, have a specific terminus that would just dump this 
string to disk


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to