Skip to content

Conversation

Bahex
Copy link
Member

@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.

@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

Bahex added 2 commits August 18, 2025 07:38
- 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.
@Bahex Bahex force-pushed the nu-hooks/startup-time branch from df57033 to db40323 Compare August 18, 2025 04:38
@fdncred fdncred merged commit a0f5105 into nushell:main Aug 18, 2025
1 check passed
@fdncred
Copy link
Contributor

fdncred commented Aug 18, 2025

Thanks

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