On Mon, Mar 7, 2011 at 14:24, Trevor Vaughan <tvaug...@onyxpoint.com> wrote:
> Erg? I thought we were on a push to try and avoid reading the contents > of unknown size files into memory where possible? Well, it isn't a great idea; you are not obliged to do anything in prefetch: if your file is of unbounded or unreasonably size, I would keep a journal of "changes" in the setter methods, then stream through the file and apply the changes from the journal on the way through. Most configuration files are small enough that we can afford the risk, though: if they are more than a meg or two in size, something very odd has happened. > Also, does this work with 0.24? I didn't realize you were targetting such an ancient version, so I don't know off hand. A quick check shows that core providers are depending on flush, though, so I think I can safely say yes. :) > Still waiting for those last few bumps to be ironed out of 2.6. *nod* Daniel -- ⎋ Puppet Labs Developer – http://puppetlabs.com ✉ Daniel Pittman <dan...@puppetlabs.com> ✆ Contact me via gtalk, email, or phone: +1 (877) 575-9775 ♲ Made with 100 percent post-consumer electrons -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-dev@googlegroups.com. To unsubscribe from this group, send email to puppet-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.