mdbx-tools: minor speedup mdbx_load by adding __hot/__inline for internal functions.

Change-Id: Iee7d2562dbe184475f01ab9a7f9aae11549d7294
This commit is contained in:
Leonid Yuriev 2021-03-12 12:35:01 +03:00
parent 8b5197b108
commit 93f0f21a4c

View File

@ -375,7 +375,7 @@ static int badend(void) {
return errno ? errno : MDBX_ENODATA;
}
static int unhex(unsigned char *c2) {
static __inline int unhex(unsigned char *c2) {
int x, c;
x = *c2++ & 0x4f;
if (x & 0x40)
@ -388,7 +388,7 @@ static int unhex(unsigned char *c2) {
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;
size_t len, l2;
int c;