mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 11:29:19 +08:00
mdbx-tools: minor speedup mdbx_load
by adding __hot/__inline
for internal functions.
Change-Id: Iee7d2562dbe184475f01ab9a7f9aae11549d7294
This commit is contained in:
parent
8b5197b108
commit
93f0f21a4c
@ -375,7 +375,7 @@ static int badend(void) {
|
|||||||
return errno ? errno : MDBX_ENODATA;
|
return errno ? errno : MDBX_ENODATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int unhex(unsigned char *c2) {
|
static __inline int unhex(unsigned char *c2) {
|
||||||
int x, c;
|
int x, c;
|
||||||
x = *c2++ & 0x4f;
|
x = *c2++ & 0x4f;
|
||||||
if (x & 0x40)
|
if (x & 0x40)
|
||||||
@ -388,7 +388,7 @@ static int unhex(unsigned char *c2) {
|
|||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int readline(MDBX_val *out, MDBX_val *buf) {
|
__hot static int readline(MDBX_val *out, MDBX_val *buf) {
|
||||||
unsigned char *c1, *c2, *end;
|
unsigned char *c1, *c2, *end;
|
||||||
size_t len, l2;
|
size_t len, l2;
|
||||||
int c;
|
int c;
|
||||||
|
Loading…
Reference in New Issue
Block a user