Anyone playing with cfacter? (facter rewritten in C++)

10 views
Skip to first unread message

Brian Gupta

unread,
Oct 24, 2014, 3:54:53 AM10/24/14
to puppe...@googlegroups.com
For those that don't know, Puppet 4 will support "native facter",
which is basically facter rewritten in C++. (This aims to address a
long time complaint about facter performance.)

Running on a Mac, I see:

cfacter: real 0m3.156s
cfacter: real 0m0.765s

IE: It seems to be 4 times faster, than ruby facter! (It also supports
data types other than strings. e.g. - facts can contain a hash.)

You can get it here.. Pretty straightforward to build from source.
https://github.com/puppetlabs/cfacter

BTW if you use a Mac, and use macports, you can just replace the brew
command with port.

- Brian Gupta

Judd Maltin

unread,
Oct 24, 2014, 11:05:39 AM10/24/14
to puppe...@googlegroups.com
moreso than being faster, it can be compiled for just about any hardware/software platform in existence.


- Brian Gupta

--
You received this message because you are subscribed to the Google Groups "puppet-nyc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-nyc+...@googlegroups.com.
To post to this group, send email to puppe...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-nyc.
For more options, visit https://groups.google.com/d/optout.



--
Judd Maltin
T: 917-882-1270
T: 888-639-4614
F: 501-694-7809
Gratitude is the end of despair and the beginning of joy.


Brian Gupta

unread,
Oct 24, 2014, 2:58:34 PM10/24/14
to puppe...@googlegroups.com
On Fri, Oct 24, 2014 at 11:05 AM, Judd Maltin <juddm...@gmail.com> wrote:
> moreso than being faster, it can be compiled for just about any
> hardware/software platform in existence.

Which will really be useful when puppet-agent gets rewritten in C++.
(A work in progress apparently.) "Native agent"

-Brian
Reply all
Reply to author
Forward
0 new messages