tame/tamer/benches
Mike Gerwitz 63e5a0d441 tamer: benches/sym.rs: Add additional UTF-8-related tests
The intent of this is to demonstrate how significant of an impact checking
byte arrays for UTF-8 validity will have, since the existing tests do not
make that clear (a static string in Rust is always valid UTF-8).

These benchmarks show that the cost when re-interning an already existing
value is +50%.

This is important, because the new reader will be interning a _lot_ of
duplicate strings, whereas the existing reader operates on byte arrays
without interning unless necessary.  And, when it does, it does so
unchecked.  But we'd rather not do that, since we cannot guarantee that
those XML files are valid (and not modified in some way).

Upcoming commits will have what I think is a reasonable compromise to this,
based on the fact that we'll be encountering _many_ duplicate strings in
parsing XML files.

DEV-10920
2021-10-18 21:35:32 -04:00
..
asg.rs tamer: ir::asg::object::IdentObject: Define methods from IdentObjectData 2021-10-14 14:38:02 -04:00
asg_lower_xmle.rs tamer: ld::xmle: Narrow Sections types 2021-10-14 12:40:13 -04:00
memchr.rs tamer: benches (memchr): Add missing bench attr 2021-08-19 23:14:33 -04:00
sym.rs tamer: benches/sym.rs: Add additional UTF-8-related tests 2021-10-18 21:35:32 -04:00
xir.rs tamer: Remove Ix generalization throughout system 2021-09-23 14:52:54 -04:00