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