From 8eef2114ece0b4a96866f075e87f195a804d61cb Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 3 Dec 2022 15:03:13 -0800 Subject: describe optimizations included in 1.1.5 --- CHANGELOG | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 1d676be..016c7bd 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,18 @@ ## 1.1.5 +* optimizations (mostly code motion) for hot codepaths + - large `match`-based decode tables have been outlined to 256-entry arrays. + this makes for slicely nicer inlining in `read_with_annotations`. + - vex/evex decoding in 64-bit decoding now shares more code. this seems to + aid code cache friendliness when prefixes must be read. + - added a fast path for operand reading for the more-likely cases of + [64-bit]: {0x66,rex}{,0x0f-} + [32-bit]: {0x66}{,0x0f-} + [16-bit]: {0x66}{,0x0f-} + + in particular, this avoids checking for instruction length overflows and + some bounds checks when we aren't handling a pessimal case of many-prefixed + instructions. if an instruction has multiple prefixes, decoders fall back + to normal read-in-a-loop-until-length-limit-reached decoding. * `Makefile` at the crate root now exercises `yaxpeax-x86` builds and tests under: - default features (fmt, std) - no-std + fmt -- cgit v1.1