Skip to content

Commit

Permalink
refactor(ast): AstBuilder enum builder methods use alloc_* methods (
Browse files Browse the repository at this point in the history
#8281)

Pure refactor. `AstBuilder` methods can use `alloc_*` methods directly, instead of calling `alloc`. Probably this makes no difference to performance as all these methods are marked `#[inline]` anyway. But in general it's better to use methods which don't return large objects on the stack.
  • Loading branch information
overlookmotel committed Jan 6, 2025
1 parent 5106088 commit 0db2a22
Show file tree
Hide file tree
Showing 2 changed files with 265 additions and 316 deletions.
Loading

0 comments on commit 0db2a22

Please sign in to comment.