Cache language information to avoid bsearch()ing all the time.
authorBehdad Esfahbod <behdad@gnome.org>
Wed, 20 Aug 2008 18:59:54 +0000 (18:59 +0000)
committerBehdad Esfahbod <behdad@src.gnome.org>
Wed, 20 Aug 2008 18:59:54 +0000 (18:59 +0000)
commitb00c94bd9e274145cfd2d1592471a13ec301b252
treef62cb0801a22a0e02c8bda147566c5c54d10eb72
parent6f036a7d104c66f4b67136e299fb8b0e54b867c0
Cache language information to avoid bsearch()ing all the time.

2008-08-20  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-language.c (pango_language_private_init),
        (pango_language_get_private), (pango_language_from_string),
        (find_best_lang_match), (find_best_lang_match_cached),
        (pango_language_get_sample_string), (pango_language_get_scripts):
        Cache language information to avoid bsearch()ing all the time.

svn path=/trunk/; revision=2701
ChangeLog
pango/pango-language.c