Skip to content
  • Thomas Haller's avatar
    all: don't use g_direct_equal() for hash table equality function · b58481b3
    Thomas Haller authored
    GHashTable optimizes a NULL equality function to use direct pointer
    comparison. That saves the overhead of calling g_direct_equal().
    This is also documented behavior for g_hash_table_new().
    
    While at it, also don't pass g_direct_hash() but use the default
    of %NULL. The behavior is the same, but consistently don't use
    g_direct_hash().
    b58481b3