Skip to content

C++: Make Instruction.toString() less expensive#254

Merged
jbj merged 2 commits intogithub:masterfrom
dave-bartolomeo:dave/InstructionToString
Oct 1, 2018
Merged

C++: Make Instruction.toString() less expensive#254
jbj merged 2 commits intogithub:masterfrom
dave-bartolomeo:dave/InstructionToString

Conversation

@dave-bartolomeo
Copy link
Copy Markdown
Contributor

Previously, Instruction.toString() returned the same string that is used in IR dumps, which requires numbering all instructions and generating a unique string for each instruction. This is too expensive on large snapshots. I've moved the original code into the new Instruction.getDumpString(), and made Instruction.toString() just return the opcode plus getAST().toString().

Previously, `Instruction.toString()` returned the same string that is used in IR dumps, which requires numbering all instructions and generating a unique string for each instruction. This is too expensive on large snapshots. I've moved the original code into the new `Instruction.getDumpString()`, and made `Instruction.toString()` just return the opcode plus `getAST().toString()`.
Copy link
Copy Markdown
Contributor

@jbj jbj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jbj jbj merged commit 9ffdf3b into github:master Oct 1, 2018
@jbj jbj mentioned this pull request Oct 5, 2018
aibaars added a commit that referenced this pull request Oct 14, 2021
Drop redundant columns from `files` and `folders` relations
smowton added a commit to smowton/codeql that referenced this pull request Apr 16, 2022
…equals-operators-2

Complete implementation of equality tests
MathiasVP pushed a commit to MathiasVP/ql that referenced this pull request Aug 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants