about summary refs log tree commit diff
path: root/src/libsyntax/errors/snippet/mod.rs
diff options
context:
space:
mode:
authorRaph Levien <raph@google.com>2016-04-20 21:56:35 -0700
committerRaph Levien <raph@google.com>2016-04-20 21:56:35 -0700
commitcfaf66c94e29a38cd3264b4a55c85b90213543d9 (patch)
tree9a6af816760a7c80430c57272de33eb9f74fb2b5 /src/libsyntax/errors/snippet/mod.rs
parent6923bc5fc73ce924228443c93420544e2853ed77 (diff)
downloadrust-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