about summary refs log tree commit diff
path: root/src/liballoc_jemalloc
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2018-08-23 14:29:38 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2018-08-23 18:41:55 +1000
commit002f03b654845667023cdaad8af988909a030bfe (patch)
treecd7877d3c12195da66650d62354c13192b7d70c9 /src/liballoc_jemalloc
parent7f4c168a9dd2195b45998ddfecdac111663b26d1 (diff)
downloadrust-002f03b654845667023cdaad8af988909a030bfe.tar.gz
rust-002f03b654845667023cdaad8af988909a030bfe.zip
Make SparseBitMatrix a bit lazier.
Currently when a row is instantiated in SparseBitMatrix, any missing
rows prior to it are also fully instantiated.

This patch changes things so that those prior rows are minimally
instantiated (with a `None`). This avoids a decent number of allocations
in NLL, speeding up several benchmarks by up to 0.5%.

The patch also removes two unused methods, `len()` and
`iter_enumerated()`.
Diffstat (limited to 'src/liballoc_jemalloc')
0 files changed, 0 insertions, 0 deletions