server-skynet-source-3rd-je.../include
Ben Maurer be8e59f5a6 Don't dereference chunk->arena in free() hot path
When you call free() we load chunk->arena even though that
data isn't used on the tcache hot path.

In profiling some FB applications, I found that ~30% of the
dTLB misses in the free() function come from this line. With
4 MB chunks, the arena_chunk_t->map is ~ 32 KB (1024 pages
in the chunk, 4 8 byte pointers in arena_chunk_map_t). This
means there's only a 1/8 chance of the page containing
chunk->arena also comtaining the map bits.
2014-04-05 15:59:08 -07:00
..
jemalloc Don't dereference chunk->arena in free() hot path 2014-04-05 15:59:08 -07:00
msvc_compat Use "standard" printf prefixes instead of MSVC ones in inttypes.h 2012-05-02 16:32:37 -07:00