WYRDTEK Home Features Reference Downloads About


Reference/es_sd_rebalance

Syntax

void es_sd_rebalance( struct es_sd *dict );

Arguments

struct es_sd *dict String dictionary.

Description

Rebalance memory allocation of string dictionary to reduce fragmentation and overall footprint, improve locality and improve average performance.

es_sd_rebalance() can be called at any time. New strings can be added to a string dictionary via es_sd_add() or es_sd_add_v() before and after calling es_sd_rebalance() without ill-effect.

[Back To Reference] [Back To Reference/es_sd]