apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Pane <bp...@pacbell.net>
Subject [PATCH] optimization for hash tables and pool userdata
Date Sun, 18 Nov 2001 07:35:24 GMT
This patch speeds up the apr_hash_t implementation's
handling of APR_HASH_KEY_STRING.

The original logic was:
  call strlen to get the length of the key;
  then iterate through the key to compute the hash;

This patch combines the two into a single pass.
It also changes apr_pool_userdata_get() to take
advantage of this optimization.


View raw message