Conversation
Owner
Author
|
yeah it's true it feels a bit too slow as this script is meant as an interactive thing 🤔 |
|
i think the slowdown is because nu has to parse everything in stdx everytime, even if you just used |
Owner
Author
yup sounds like it's the issue 👍
yeah when you do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
this is an experiment to try and use the
Optiontype designed by @1Kinoti, in thetmux-sessionizer.nuscript 😏first of all, i have to say i love this
stdx.nupackage, how the code feels with the changes and the rest, nice job @1Kinoti 👏 👏installation
the
tmux-sessionizer.nuscript is installed in~/.local/bin/.to install
stdx.nu, simply issue the following commandand that's it 👌
🧪 performance
command:
std bench { tmux-sessionizer.nu <options> } --rounds 10 --verbose --prettyon the tip of this PR branch:
--list: 337ms 397µs 434ns +/- 4ms 383µs 712ns
--list --expand: 541ms 761µs 374ns +/- 3ms 94µs 824ns
on the current main branch
--list: 69ms 176µs 369ns +/- 1ms 325µs 968ns
--list --expand: 159ms 680µs 557ns +/- 1ms 830µs 480ns
❗ this means that with
stdx Optiontmux-sessionizer.nu --listis slower by a factor between around 4.73 and 4.99tmux-sessionizer.nu --list --expandis slower by a factor between around 3.34 and 3.42