Open kimono-koans opened 9 months ago
Just curious. Is there a reason why you can't/won't merge these changes back into skim?
Just curious. Is there a reason why you can't/won't merge these changes back into skim?
As I stated in my post:
If anyone else is interested in performance improvements, and refactoring to reduce long term memory usage, I've been building on skim actively and I am eager to work with others who are similarly inclined.
My experience has been that this project is not actively maintained. I think I still have PRs outstanding: https://github.com/lotabout/skim/pulls/kimono-koans.
If anyone wants to assist, and contribute here, I'd help.
If no one else is so inclined, right now, I'll just keep developing in my own fork/branch.
Just curious, what's the reason for the name "two_percent"? It's kinda hard to remeber (as in, what it does) and also to recommend to folks...
In the US, at least, we sell milk with different percentages of milk fat. skim
has 0% milk fat. Whole milk has something like 4% milk fat. A popular option is called 2% milk or 2%.
If you install cargo install two_percent
or cargo deb --install
, the binary/command will be installed as sk
.
Have you also implemented fzf-like color option parsing? I am very used to having some elements of the ui in bold
, but that doesn't seem to be possible with the current implementation.
Edit: I tried cargo install two_percent
, but the result executable just shows the loading indicator forever without actually loading anything.
Have you also implemented fzf-like color option parsing? I am very used to having some elements of the ui in
bold
, but that doesn't seem to be possible with the current implementation.
No, I haven't done any work re this, but I already see bold colors in my view? See: https://asciinema.org/a/637475
Hi @kimono-koans we'd be happy to work with you to merge your improvements back into Skim ! Please tell us if you are interested
No, I haven't done any work re this, but I already see bold colors in my view?
Maybe the white looks a little bit whiter, but that isn't bold as in bold.
Hi @kimono-koans we'd be happy to work with you to merge your improvements back into Skim ! Please tell us if you are interested
Once you start merging new things, I'll perhaps work on some commits for upstream.
With this release, we should have some "quiet time" to start progressively merging your branch if you'd like
If the reason you're not using
skim
is raw performance, my branch,two_percent
, is faster, more efficient and uses less memory thanfzf
for largish inputs (40MB):If anyone else is interested in performance improvements, and refactoring to reduce long term memory usage, I've been building on
skim
actively and I am eager to work with others who are similarly inclined.Re: @lotabout 's wonderful comment re: performance:
For ordinary text inputs, I'm using
Arc<Box<str>>
which I think is 32B? If there is some way to useArc<str>
, that would be even better but I can't seem to make it work re: traits. Re: my 10x duplicated KJV Bible 43M-ish corpus, the memory usage is about 90M on my Mac.On ingest, I have a method for deduplicating lines. This is a significant performance win for inputs with lots of empty or the same lines.
Algorithm switching is broken in the latest version. This is fixed in mine. I have a
simple
algorithm which is much closer to thefzf
v1 algo used for large inputs. See above. You too can now write your own super, simple algo or improve mine!I've made a few changes which may help.
My experience has been that ingest was not reading in enough bytes at once, and other threads were spinning wait on the lock.