diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2021-04-27 18:30:02 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2021-04-28 18:26:57 +0200 |
commit | a211bea6a5f0ad811a679458cffed1e263c0ccfa (patch) | |
tree | bf7bdad35a890c69fe4e539b4724cd9213b39f37 /xml.h | |
parent | 675cfe6a73b369d1eb7adefa6e59dc37259a513d (diff) |
enable unlocked I/O by default
getchar_unlocked is part of POSIX and should be supported by most platforms. On
all tested platforms it has a performance benefit, sometimes smallish (<12%),
sometimes large (~40%).
Diffstat (limited to 'xml.h')
-rw-r--r-- | xml.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -24,7 +24,7 @@ typedef struct xmlparser { #ifndef GETNEXT /* GETNEXT overridden to reduce function call overhead and further context optimizations. */ - #define GETNEXT getchar + #define GETNEXT getchar_unlocked #endif /* current tag */ |