diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-08-23 14:29:38 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-08-23 18:41:55 +1000 |
| commit | 002f03b654845667023cdaad8af988909a030bfe (patch) | |
| tree | cd7877d3c12195da66650d62354c13192b7d70c9 /src/liballoc_jemalloc | |
| parent | 7f4c168a9dd2195b45998ddfecdac111663b26d1 (diff) | |
| download | rust-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
