Skip to content

perf: lazily create ureq agents#836

Merged
dsherret merged 1 commit intomainfrom
perf_lazily_create_ureq_agents
Apr 5, 2024
Merged

perf: lazily create ureq agents#836
dsherret merged 1 commit intomainfrom
perf_lazily_create_ureq_agents

Conversation

@dsherret
Copy link
Copy Markdown
Member

@dsherret dsherret commented Apr 5, 2024

I actually did a flamegraph on Mac. I didn't notice it was slow because I use Windows, which was way faster at this.

Before:

% time dprint check --incremental=false ./data/package-template.json
0.10s user 0.02s system 65% cpu 0.173 total

After:

% time ../dprint/target/release/dprint check --incremental=false ./data/package-template.json
0.01s user 0.01s system 67% cpu 0.023 total

@dsherret dsherret merged commit 426d59a into main Apr 5, 2024
@dsherret dsherret deleted the perf_lazily_create_ureq_agents branch April 5, 2024 01:53
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.

1 participant