gleam-lang/gleam

Use memory arena for pretty printing algebra

Open

#2,251 opened on Jun 29, 2023

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Rust (21,417 stars) (960 forks)batch import
help wanted

Description

The pretty printing algebra data structure is represented using a recursive type that is reference counted. Create a new version of this that uses a memory arena (likely a reference based one) and benchmark it to see if there is a notable performance improvement.

If this is determined as being significantly faster, we can convert the formatter and code generators over to use this new version. This would be quite a long manual job.

Contributor guide

Use memory arena for pretty printing algebra · gleam-lang/gleam#2251 | Good First Issue