borg icon indicating copy to clipboard operation
borg copied to clipboard

try borg with pypy (and cpyext) - does it work?

Open ThomasWaldmann opened this issue 8 years ago • 4 comments

ThomasWaldmann avatar Oct 23 '16 16:10 ThomasWaldmann

Tried borg with current pypy3.5 v5.9:

  • borg seems to work (tried some basic commands shortly)
  • tests have quite some issues: integrity errors, crashing test workers with pytest-xdist, slow msgpack, ...

ThomasWaldmann avatar Oct 07 '17 03:10 ThomasWaldmann

5.8 didn't work due to some missing APIs (PyMemoryView_FromMemory).

enkore avatar Oct 07 '17 08:10 enkore

did a quick test with pypy3.5-6.0.0 (installed on stretch64 vagrant VM via pyenv):

  • llfuse does not build
  • without fuse, borg builds and tests run, but quite some test failures
  • uses the pure python msgpack (unclear whether this is a speed issue on pypy)

ThomasWaldmann avatar Jun 28 '18 17:06 ThomasWaldmann

one could do a new test using pyfuse3 after #4122 is closed.

ThomasWaldmann avatar Oct 27 '20 20:10 ThomasWaldmann

Briefly tested:

pypy3 -m pip install --user git+https://github.com/borgbackup/borg.git

Findings:

  • Seemed to work, I tested rcreate, create, rlist, list, mount
  • Message Using a pure-python msgpack! This will result in lower performance.

zougloub avatar Feb 16 '23 10:02 zougloub

@zougloub Ah, interesting, thanks for testing!

The pure-python msgpack is somewhat expected and maybe not even that slow as it will also be accelerated by pypy.

Wondering whether msgpack could be made working with the faster C code, considering that it also seemed to cope somehow with borg and its C/Cython code.

ThomasWaldmann avatar Feb 16 '23 12:02 ThomasWaldmann