On 31.08.2006, at 17:03, Vlad Seryakov wrote:

Have you run any performance benchmark similar to Tcl array/ns_sets tests?

Well, hard to do that. I mean: against WHAT should it do it?
Comparing [ns_config] to [ns_conf get] isn't fair as those
are entirely different things.

But if you will:

server1:nscp 3>  time {ns_config section key 100} 1000
4.211 microseconds per iteration
server1:nscp 5> time {ns_conf get section key 100} 1000
5.002 microseconds per iteration

Not bad, taking in account that ns_config does almost
nothing here, whereas ns_conf does quite a few things
under the hood.

But, I believe, and you can see that by experimenting
yourself, that ns_conf will be as fast as ns_config is,
so it can *theoretically* replace the ns_config speedwise.
Theoretically, because it is case-sensitive per-desing which
limits its snap-in replacement caps, of course.

You are most welcome to glance at the code and
tell what you think about it.

Cheers,
Zoran

Reply via email to