Skip to content
  • Matthias Clasen's avatar
    Optimize g_unichar_iswide · 97a25d12
    Matthias Clasen authored
    Apply the same optimization that was done for g_unichar_get_script
    long ago: Use a quick check for the low end, and then remember the
    midpoint of the last bsearch, since we're likely to be called for
    characters that are close to each other.
    
    This change made g_unichar_iswide disappear from profiles of the
    gtk3-demo listbox example.
    97a25d12