mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-21 08:19:27 +08:00
mdbx-tools: minor speedup mdbx_load
by adding __hot/__inline
for internal functions.
Change-Id: Iee7d2562dbe184475f01ab9a7f9aae11549d7294
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user