diff options
author | iximeow <me@iximeow.net> | 2022-12-03 15:03:13 -0800 |
---|---|---|
committer | iximeow <git@iximeow.net> | 2022-12-03 15:11:09 -0800 |
commit | be09c908de8107453cac0fd74fb58a379aa581b8 (patch) | |
tree | 40432f5184943efb5d757f79df4be133c6f2ef9a | |
parent | c33dac5a0dee4e97416bdafdd27692363afc0d08 (diff) |
describe optimizations included in 1.1.5
-rw-r--r-- | CHANGELOG | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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}{<opcode>,0x0f-<opcode>} + [32-bit]: {0x66}{<opcode>,0x0f-<opcode>} + [16-bit]: {0x66}{<opcode>,0x0f-<opcode>} + + 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 |