-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyPy-related issues #243
Comments
Thanks for looking into the broken autocomplete @cecinestpasunepipe. For future reference: pypy/pypy#5006 tracks this apparent PyPy issue and #829 for dissect. |
@JSCU-CNI could you tell us how to reproduce the slowness of |
Thanks for taking the time to look into this @cfbolz! The slow performance we mentioned is about the The easiest method to test this function is probably by running The snippet below also could get you started. You might need some additional dependencies on your system such as git clone https://github.com/fox-it/dissect.target.git
cd dissect.target/
pypy3.9 -m venv venv
. venv/bin/activate
pip install -e .[dev] And then in the repl or some local script: from dissect.target.helpers import fsutil
fh = open("some-large-file", "rt")
result = list(fsutil.reverse_readlines(fh)) Hopefully this can get you started in debugging this strange performance hit in PyPy. |
Thanks for reporting. The reverse_readlines performance problem should be solved on latest nightly builds of pypy3.10. Is there a way you can verify the problem is solved (using tomorrows builds? I see you are using a separate repo for the CI templates that uses pypy3.10. The setup python action supports using nightly builds of pypy by specifying |
Thanks @cfbolz and @mattip for your effort in fixing these issues. I can confirm that autocomplete now works as expected in PyPy 3.10.14 7.3.17. The tabbing behaviour does seem to be slightly different from CPython, but that is mainly a UX difference and fine with me. The reverse readlines function also seems to be significantly faster now:
|
awesome, thanks for the feedback! |
When using PyPy to run dissect, we encountered two issues:
Autocomplete is not working in target-shell
The performance of
reverse_readlines
(dissect/target/helpers/fsutil:1011) is terribleFor both issues, we haven't got a clue what's causing them. Since dissect is tested against PyPy, you might want to look into these issues.
The text was updated successfully, but these errors were encountered: