Skip to content

Conversation

@istathar
Copy link
Member

@istathar istathar commented Aug 15, 2025

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.

@istathar istathar self-assigned this Aug 15, 2025
@istathar istathar merged commit be5adfd into technique-lang:main Aug 15, 2025
1 check passed
@istathar istathar deleted the formatter-sharing branch September 4, 2025 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant