Thanks for the report! This is due to the recent “oxidisation” of zstd-seekable, done by @darleybarreto. More debugging will tell whether this was already present in the original C version or not.
I bumped into the same issue while trying to record my changes for #530 on top of main. I had to use an older pijul instead of main (pijul v1.0.0-alpha.54). So that is a reproduction.
But I’m unable to push the changes. Is this the correct command?
$ pijul push https://nest.pijul.com/pijul/pijul --to-channel :530
Uploading changes [==================================================] 1/1
It seems successful, but the changes aren’t visible in Discussions.
EDIT: uploading over ssh worked. This patch can’t be recorded by the main
version of pijul.
Just sent the tarball over.
This is resolved for my test-cases. zstd is very slow now (both 1.5.0, and 1.4.9 on my Manjaro), but that is probably a separate issue.
@potocpav Was the issue solved when you updated the zstd?
@darleybarreto On pijul main, zstd 1.5.0-1, everything is still sloooow. Reproduction (on mobile, didn’t test):
git clone https://github.com/vim/vim.git
cd vim
pijul git .
# first commit takes at least 10s of minutes
# `flamegraph` reports ~95% of time in zstd
@potocpav I ran those commands and this process take a while indeed :/
@verticalegg could you kindly test pijul main to see if this bug was fixed?
I already noticed that I was writing the files twice, and changed the interface of save_change
to reduce that overhead. The next improvement could be to change zstd-seekable
to pinpoint a version of Zstd that is guaranteed to work with known compilation options. Since Zstd has 0 external dependencies (AFAIK), this is probably not going to be too hard (build.rs
+ the cc
crate).
I can’t reproduce, and since these things changed, I believe the issue is fixed. Feel free to reopen if not.
Just installed Pijul, then pulled it from this repo and reinstalled to make sure I had the latest version. I created my own repository, but every time I try to record Pijul crashes. I’ve included the latest report here.