Skip to content

Commit

Permalink
refactor(ast): make AstBuilder Copy (#3602)
Browse files Browse the repository at this point in the history
`AstBuilder` only contains a shared ref `&Allocator`. So make it `Copy` and pass around `AstBuilder<'a>` instead of `&AstBuilder<'a>` - 1 less level of indirection.

Hopefully this will have little effect on benchmarks as all `AstBuilder`'s methods are marked `#[inline]`, but this change will minimize impact if compiler decides not to inline for some reason.
  • Loading branch information
overlookmotel committed Jun 10, 2024
1 parent d6370f1 commit 08f1010
Show file tree
Hide file tree
Showing 3 changed files with 218 additions and 236 deletions.
Loading

0 comments on commit 08f1010

Please sign in to comment.