Update README

This commit is contained in:
0xd4d 2020-01-05 23:17:27 +01:00
parent 5206cf056a
commit f451a69a50
1 changed files with 3 additions and 4 deletions

View File

@ -530,10 +530,9 @@ Disassembled code:
decoder.IP = exampleCodeRIP; decoder.IP = exampleCodeRIP;
ulong endRip = decoder.IP + (uint)exampleCode.Length; ulong endRip = decoder.IP + (uint)exampleCode.Length;
// For PERF, use a factory to create the instruction info if you need register // Use a factory to create the instruction info if you need register and
// and memory usage. If it's something else, eg. encoding, flags, etc, there // memory usage. If it's something else, eg. encoding, flags, etc, there
// are properties on Instruction that can be used instead that don't allocate. // are properties on Instruction that can be used instead.
// The factory only allocates once and reuses the internal arrays
var instrInfoFactory = new InstructionInfoFactory(); var instrInfoFactory = new InstructionInfoFactory();
while (decoder.IP < endRip) { while (decoder.IP < endRip) {
decoder.Decode(out var instr); decoder.Decode(out var instr);