Simplify jemalloc setup by madsmtm · Pull Request #146627 · rust-lang/rust (original) (raw)

Some allocation changes have definitely happened there:

  496,710,988  ???:
  -408,481,523    realloc
   261,159,975    do_rallocx
   253,281,882    _rjem_je_arena_ralloc
  -193,667,679    tcache_bin_flush_small
   159,404,361    _rjem_je_arena_ralloc_no_move
    96,036,695    _rjem_je_tcache_bin_flush_small
    81,229,215    tcache_bin_flush_edatas_lookup
   -76,118,340    malloc_default
    67,153,310    rtree_read
    64,297,968    rtree_metadata_read
   -54,428,351    pa_alloc
    51,577,458    _rjem_je_arena_cache_bin_fill_small
    29,630,447    _rjem_je_malloc_default
    18,729,715    _rjem_je_emap_update_edata_state
    17,881,154    _rjem_je_eset_fit
    13,595,487    emap_try_acquire_edata_neighbor_impl
    11,825,510    _rjem_je_te_event_trigger
   -10,311,127    free_default
   -10,132,168    ecache_evict
     8,316,595    _rjem_je_eset_remove
     8,300,824    _rjem_je_tcache_bin_flush_stashed
     8,176,825    _rjem_je_eset_insert
     8,124,547    emap_rtree_leaf_elms_lookup
     7,930,250    base_alloc_impl
    -7,411,000    tcache_bin_flush_stashed
     7,385,380    _rjem_je_hook_invoke_dalloc
     7,385,320    _rjem_je_hook_invoke_alloc
     7,226,602    extent_recycle
    -7,008,483    eset_remove

I would suggest perf. testing any PR that touches things like memory allocation, for the next time 😅

I will post a revert, so that we can figure out what happened here.