Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce the number of passes #7

Closed
WGUNDERWOOD opened this issue Aug 15, 2024 · 2 comments
Closed

Reduce the number of passes #7

WGUNDERWOOD opened this issue Aug 15, 2024 · 2 comments
Labels
performance Improvements to performance

Comments

@WGUNDERWOOD
Copy link
Owner

The current approach alternates between indenting (adding spaces at the start of lines) and wrapping (inserting line breaks to shorten long lines) until convergence. This can result in multiple passes, which involves a lot of redundant work. It should be possible to reduce the number of required passes, ideally to a single pass through the file (possibly with some backtracking).

@WGUNDERWOOD WGUNDERWOOD added the enhancement New feature or request label Aug 15, 2024
@WGUNDERWOOD
Copy link
Owner Author

Working on this in the one-pass branch.

@WGUNDERWOOD WGUNDERWOOD added performance Improvements to performance and removed enhancement New feature or request labels Aug 31, 2024
@WGUNDERWOOD
Copy link
Owner Author

Implemented in 9589405

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Improvements to performance
Projects
None yet
Development

No branches or pull requests

1 participant