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

Use incremental formatting internally for dprint #6815

Merged
merged 4 commits into from
Jul 22, 2020

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Jul 19, 2020

This change causes dprint to only format files that have changed since it last ran.

Previously: ~5s
Now: ~2.6s after first format. Still previous for first run (no noticeable overhead). Of the overall time of format.py, 0.1s is spent on dprint after first run.

I am working on "process plugins" in dprint, which should allow us to get overall formatting time down to under half a second eventually and allow us to remove some code/dependency management in Deno.

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks David!

@ry ry merged commit a28e153 into denoland:master Jul 22, 2020
@dsherret dsherret deleted the incremental_internal_formatting branch July 22, 2020 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants