diff options
| author | Raph Levien <raph@google.com> | 2016-04-20 21:56:35 -0700 |
|---|---|---|
| committer | Raph Levien <raph@google.com> | 2016-04-20 21:56:35 -0700 |
| commit | cfaf66c94e29a38cd3264b4a55c85b90213543d9 (patch) | |
| tree | 9a6af816760a7c80430c57272de33eb9f74fb2b5 /src/libsyntax/errors/snippet/mod.rs | |
| parent | 6923bc5fc73ce924228443c93420544e2853ed77 (diff) | |
| download | rust-cfaf66c94e29a38cd3264b4a55c85b90213543d9.tar.gz rust-cfaf66c94e29a38cd3264b4a55c85b90213543d9.zip | |
Add comment, reduce storage requirements
Adds a comment which explains the trie structure, and also does a little arithmetic on lookup (no measurable impact, looks like modern CPUs do this arithmetic in parallel with the memory lookup to find the node) to save a bit of space. As a result, the memory impact of the compiled tables is within a couple hundred bytes of the old bsearch-range structure.
Diffstat (limited to 'src/libsyntax/errors/snippet/mod.rs')
0 files changed, 0 insertions, 0 deletions
