Skip to content

Commit cb9e717

Browse files
committed
update memory arenas
1 parent bfe7b3c commit cb9e717

File tree

1 file changed

+1
-1
lines changed
  • src/docs/learn/parser_in_rust

1 file changed

+1
-1
lines changed

src/docs/learn/parser_in_rust/ast.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ Every `Box` and `Vec` are allocated on demand and then dropped separately.
249249
What we would like to do is pre-allocate memory and drop it in wholesale.
250250

251251
:::info
252-
[This blog post](https://manishearth.github.io/blog/2021/03/15/arenas-in-rust/) explains memory arena in more detail.
252+
See also [Arenas in Rust](https://manishearth.github.io/blog/2021/03/15/arenas-in-rust) and [Flattening ASTs](https://www.cs.cornell.edu/~asampson/blog/flattening.html) for more background on storing ASTs in memory arenas.
253253
:::
254254

255255
[`bumpalo`](https://docs.rs/bumpalo/latest/bumpalo/) is a very good candidate for our use case, according to its documentation:

0 commit comments

Comments
 (0)