Commit be5adfd
authored
Use references in formatter (#69)
Use references to avoid unnecessary allocation and copying in the code
formatter. That also allows a nifty optimization to have a lookup table
of multiples of 4 space indents, meaning no allocation is needed for
that very common case either.File tree
3 files changed
+294
-283
lines changed- src/formatting
- tests/formatting
3 files changed
+294
-283
lines changed
0 commit comments