use stdx Option
in tmux-sessionizer.nu
#41
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
Option
type designed by @1Kinoti, in thetmux-sessionizer.nu
script 😏first of all, i have to say i love this
stdx.nu
package, how the code feels with the changes and the rest, nice job @1Kinoti 👏 👏installation
the
tmux-sessionizer.nu
script 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 --pretty
on 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 Option
tmux-sessionizer.nu --list
is slower by a factor between around 4.73 and 4.99tmux-sessionizer.nu --list --expand
is slower by a factor between around 3.34 and 3.42