/* Essentially, calls g_hash_table_resize() if the table has strayed too far from its ideal size for its number of nodes.  */
static void g_hash_table_maybe_resize(GHashTable *hash_table)
/* Essentially, calls g_hash_table_resize() if the table has strayed too far from its ideal size for its number of nodes.  */
static void g_hash_table_maybe_resize(GHashTable *hash_table)
{
  gint noccupied = hash_table->noccupied;
  gint size = hash_table->size;
  if ((size > hash_table->nnodes * 4 && size > 1 << HASH_TABLE_MIN_SHIFT) ||
      (size <= noccupied + (noccupied / 16)))
    g_hash_table_resize (hash_table);
}