When I first sent this patch to the mailing list in 2008, my benchmarking found a
reduction in startup time of 15%.
#include <stdlib.h>
#include "ascii.h"
-int ascii_isupper (int c)
+inline int ascii_isupper (int c)
{
return (c >= 'A') && (c <= 'Z');
}
-int ascii_islower (int c)
+inline int ascii_islower (int c)
{
return (c >= 'a') && (c <= 'z');
}
-int ascii_toupper (int c)
+inline int ascii_toupper (int c)
{
if (ascii_islower (c))
return c & ~32;
return c;
}
-int ascii_tolower (int c)
+inline int ascii_tolower (int c)
{
if (ascii_isupper (c))
return c | 32;