Sander

Results 162 comments of Sander

@r3mko Does it still happen with your downloads? If so: Are you interested in appyling a workaround (the patch I created) until a real fix is released?

Nice! I tested as I described in https://github.com/sabnzbd/sabnzbd/issues/2895#issuecomment-2269933959 ... and it works. Cool, cool, cool. ![image](https://github.com/user-attachments/assets/19933aea-bb2b-4833-b357-60d936bb9bed) ![image](https://github.com/user-attachments/assets/0179dea6-75a1-4709-bd1e-7e8f46fc723c) ``` 2024-08-16 18:07:38,115::INFO::[newswrapper:240] Increased buffer from 9420800 to 9830400 for 2024-08-16 18:07:38,171::INFO::[newswrapper:240] Increased...

This might be related: https://docs.python.org/3.13/howto/free-threading-extensions.html#module-initialization

> The real fun is in SAB itself, there could be all sorts of bugs were locking will be required but it currently relies on GIL behaviour. I hacked together...

Interesting. I tried within a Ubuntu docker image, with deadsnakes: ``` import sys print("Hallo, GIL is ", sys._is_gil_enabled()) ``` Default: ``` root@e627c40e9813:/# python3.14 hallo.py Hallo, GIL is True root@e627c40e9813:/# PYTHON_GIL=1...

Checking: Normal python3.14: GIL is there: ``` root@e627c40e9813:~# python3.14 -c "import sys; print(sys.version); print('gil enabled', sys._is_gil_enabled())" 3.14.0rc3 (main, Sep 19 2025, 08:54:47) [GCC 13.3.0] gil enabled True ``` and with...

FWIW: I made multi-thread wrapper for pystones, and NOGIL was slower than with GIL Google Gemini made a multi-thread python script, and the same: NOGIL slower than GIL

FWIW: I've created a no-gil sabnzbd docker Dockerfile. And it's working ... and I hope without (hidden) errors. https://github.com/sanderjo/sabnzbd-nogil-docker Pystone is a bit lower, but still looks good:

Intermediate (pun intended) update: it's working with NZB downloads with rar files inside. The intermediate script `example-scripts/mini_intermediate_script.py` is a proof of concept: it checks if there is 'force' or 'high'...

Now working on a more convincing test example: a binary with "YESYESYES" at position 2000 inside that binary. Creation: ``` rm * head -c 1024MB "1024MB-$(date +%F).bin" cat 1024MB-2025-12-13.bin |...