readstringlist vs readjson

11 views
Skip to first unread message

Marty Gehrke

unread,
May 27, 2015, 9:18:12 AM5/27/15
to help-c...@googlegroups.com

Is one more efficient than the other?

Neil Watson

unread,
May 27, 2015, 9:24:42 AM5/27/15
to help-c...@googlegroups.com
On Wed, May 27, 2015 at 01:18:08PM +0000, Marty Gehrke wrote:
> Is one more efficient than the other?

In the past readstringlist would have problems with large files. I don't
know if that is still true. Readjson does not suffer this problem.

--
Neil H Watson
Sr. Partner, Architecture and Infrastructure
CFEngine reporting: https://github.com/evolvethinking/delta_reporting
CFEngine policy: https://github.com/evolvethinking/evolve_cfengine_freelib
CFEngine and vim: https://github.com/neilhwatson/vim_cf3
CFEngine support: http://evolvethinking.com

Ted Zlatanov

unread,
May 28, 2015, 1:15:07 PM5/28/15
to help-c...@googlegroups.com
On Wed, 27 May 2015 13:18:08 +0000 Marty Gehrke <Martin...@twosigma.com> wrote:

MG> Is one more efficient than the other?

`readstringlist()` constructs a linked list (Rlist) without any parsing,
so it should be faster by a small margin. But I don't think anyone has
tested it because it's unlikely to make a significant difference to the
policy runtime.

Ted

Reply all
Reply to author
Forward
0 new messages