Skip to content
  • Alexander Larsson's avatar
    Make g_datalist_get_data not look up the quark · 1cceda49
    Alexander Larsson authored and Matthias Clasen's avatar Matthias Clasen committed
    Instead of converting the string to a quark and comparing quarks we
    use the new lockless g_quark_to_string and just compare the quarks
    in the datalist with the given string.
    
    This means we avoid the global lock for string to quark. Additionally
    most of the time the data list will be quite short, so the cost of
    doing the sting comparisons is likely similar to that of the quark
    hashtable lookup (which does at least one string comparison for a
    successfull lookup).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=650458
    1cceda49