Skip to content

Commit

Permalink
perf: emit instruction's opcodes, not instructions
Browse files Browse the repository at this point in the history
Lower build times drastically.

Previously, the rust struct `LabelledInstruction` was
emitted. Now, the instruction's raw opcode as well as potential
arguments are emitted as `u64`s. They are then re-interpreted into
`LabelledInstruction`s.

Presumably this works because the rust compiler does not try to analyze
the `u64`s for inlining possibilities, among other things.
  • Loading branch information
jan-ferdinand committed Mar 14, 2024
1 parent df0715e commit 7c3de15
Show file tree
Hide file tree
Showing 2 changed files with 138 additions and 121 deletions.
Loading

0 comments on commit 7c3de15

Please sign in to comment.