mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:34:14 +08:00
mdbx: speedup debug/checked build.
This resolves https://github.com/leo-yuriev/libmdbx/issues/80 Change-Id: I20596f87db17ce01379dae5f58f4c2b158a04a4a
This commit is contained in:
parent
c1ad86c368
commit
fb1d600597
@ -2488,8 +2488,10 @@ static int lcklist_detach_locked(MDBX_env *env) {
|
|||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
for (TYPE *scan = begin + 1; scan < end; ++scan) \
|
if (mdbx_audit_enabled()) { \
|
||||||
assert(CMP(scan[-1], scan[0])); \
|
for (TYPE *scan = begin + 1; scan < end; ++scan) \
|
||||||
|
assert(CMP(scan[-1], scan[0])); \
|
||||||
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
@ -2528,11 +2530,13 @@ static int lcklist_detach_locked(MDBX_env *env) {
|
|||||||
++first; \
|
++first; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
for (TYPE_LIST *scan = begin; scan < first; ++scan) \
|
if (mdbx_audit_enabled()) { \
|
||||||
assert(CMP(*scan, item)); \
|
for (TYPE_LIST *scan = begin; scan < first; ++scan) \
|
||||||
for (TYPE_LIST *scan = first; scan < end; ++scan) \
|
assert(CMP(*scan, item)); \
|
||||||
assert(!CMP(*scan, item)); \
|
for (TYPE_LIST *scan = first; scan < end; ++scan) \
|
||||||
(void)begin, (void)end; \
|
assert(!CMP(*scan, item)); \
|
||||||
|
(void)begin, (void)end; \
|
||||||
|
} \
|
||||||
\
|
\
|
||||||
return first; \
|
return first; \
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user