Skip to content

refactor(nu-hooks/startup-times): Better performance and UX #1136

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Bahex
Copy link
Contributor

@Bahex Bahex commented Jun 16, 2025

  • Use attr based examples.
  • Hook removes itself after running, rather than staying loaded.
  • Switch to tsv as storage format to allow adding new logs without loading the file into memory.

- Use attr based examples
- Hook removes itself after running, rather than staying loaded.
- Switch to tsv as storage format to allow adding new logs without
  loading the file into memory.
@fdncred
Copy link
Contributor

fdncred commented Jun 16, 2025

Seems reasonable. I've ran a custom version of this since Aug-2023. My windows system is horribly slow but here's what I do with the output of a script like this one. I thought "perf per byte" would be a reasonable way to measure performance since everyone sources/uses different files at startup. I could share my startup-stats script too if anyone is interested.
image

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.

2 participants