* Added option: CLICON_CLI_BUF_START and CLICON_CLI_BUF_THRESHOLD so you can change the start and
threshold of quadratic and linear growth of CLIgen buffers (cbuf:s) * Memory footprint * Do not autopopulate namespace cache, instead use on-demand, see `xml2ns()`. * Set CBUF start level to 256 (`CLICON_CLI_BUF_START` option) * Reduced xml child vector default size from 4 to 1 with quadratic growoth to 64K then linear
This commit is contained in:
parent
250ead517c
commit
0f54899ae4
17 changed files with 393 additions and 124 deletions
|
|
@ -458,10 +458,12 @@ xml2ns(cxobj *x,
|
|||
}
|
||||
#endif
|
||||
}
|
||||
#if 0 /* Dont auto-populate all caches, eg startup doesnt need a cache */
|
||||
/* Set default namespace cache (since code is at this point,
|
||||
* no cache was found */
|
||||
if (ns && nscache_set(x, prefix, ns) < 0)
|
||||
goto done;
|
||||
#endif
|
||||
ok:
|
||||
if (namespace)
|
||||
*namespace = ns;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue