mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 7.4.2019
Problem: When ignoring case utf_fold() may consume a lot of time. Solution: Optimize for ASCII.
This commit is contained in:
parent
b25f9a97e9
commit
c4a927ca8d
@ -3067,6 +3067,9 @@ utf_convert(
|
|||||||
int
|
int
|
||||||
utf_fold(int a)
|
utf_fold(int a)
|
||||||
{
|
{
|
||||||
|
if (a < 0x80)
|
||||||
|
/* be fast for ASCII */
|
||||||
|
return a >= 0x41 && a <= 0x5a ? a + 32 : a;
|
||||||
return utf_convert(a, foldCase, (int)sizeof(foldCase));
|
return utf_convert(a, foldCase, (int)sizeof(foldCase));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -758,6 +758,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2019,
|
||||||
/**/
|
/**/
|
||||||
2018,
|
2018,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user