Changed to use just g_utf8_strdown instead of utf8_normalise, to match the
2002-03-26 Not Zed <NotZed@Ximian.com> * camel-text-index.c (text_index_normalise): Changed to use just g_utf8_strdown instead of utf8_normalise, to match the indexing code. utf8_normalise is just far too expensive (saves approx 25% total processing). svn path=/trunk/; revision=16250
This commit is contained in:
@ -1,3 +1,10 @@
|
||||
2002-03-26 Not Zed <NotZed@Ximian.com>
|
||||
|
||||
* camel-text-index.c (text_index_normalise): Changed to use just
|
||||
g_utf8_strdown instead of utf8_normalise, to match the indexing
|
||||
code. utf8_normalise is just far too expensive (saves approx 25%
|
||||
total processing).
|
||||
|
||||
2002-03-25 Not Zed <NotZed@Ximian.com>
|
||||
|
||||
* camel-text-index.c (text_index_add_name): When we add a new
|
||||
|
@ -753,8 +753,8 @@ text_index_normalise(CamelIndex *idx, const char *in, void *data)
|
||||
{
|
||||
char *word;
|
||||
|
||||
/* Sigh, this is really epensive */
|
||||
word = g_utf8_normalize(in, strlen(in), G_NORMALIZE_ALL);
|
||||
/* Sigh, this is really expensive */
|
||||
word = g_strdup(in); /*g_utf8_normalize(in, strlen(in), G_NORMALIZE_ALL);*/
|
||||
g_utf8_strdown(word);
|
||||
|
||||
return word;
|
||||
|
Reference in New Issue
Block a user