perf(db): use smallvec for mdbx table names (#11291)

This commit is contained in:
DaniPopes
2024-09-27 17:20:43 +02:00
committed by GitHub
parent 0446ec471a
commit 07e94e7fa5
4 changed files with 14 additions and 8 deletions

View File

@ -12,6 +12,7 @@ cfg_if::cfg_if! {
cfg_if::cfg_if! {
if #[cfg(feature = "tracy-allocator")] {
type AllocatorWrapper = tracy_client::ProfiledAllocator<AllocatorInner>;
tracy_client::register_demangler!();
const fn new_allocator_wrapper() -> AllocatorWrapper {
AllocatorWrapper::new(AllocatorInner {}, 100)
}
@ -23,9 +24,6 @@ cfg_if::cfg_if! {
}
}
#[cfg(feature = "tracy-allocator")]
tracy_client::register_demangler!();
/// Custom allocator.
pub type Allocator = AllocatorWrapper;