Skip to content
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

make it faster #6

Open
archenemies opened this issue Dec 5, 2019 · 2 comments
Open

make it faster #6

archenemies opened this issue Dec 5, 2019 · 2 comments

Comments

@archenemies
Copy link

I noticed this is a bit laggy (on a Raspberry Pi 4). Most of the time seems to be spent in "remove_expired_container_locks":

$ time i3-persist kill
i3-persist kill  0.14s user 0.14s system 56% cpu 0.490 total

# after commenting out "remove_expired_container_locks"
$ time i3-persist kill
i3-persist kill  0.04s user 0.04s system 49% cpu 0.164 total

However, I'm not sure how I would improve it. Would it be faster in Python? https://pypi.org/project/i3ipc/

@N-Parsons
Copy link

Hey @archenemies, you might be interested in j4-persist. It's written in Rust, which is a compiled language, so it's incredibly fast.

You'll need to compile it yourself for your Raspberry Pi, but it should be simple and there are instructions in my README. Feel free to raise an issue in my repo if you have any trouble.

@archenemies
Copy link
Author

Thank you @N-Parsons. By the way I tried to email you but it says "Your message to [email protected] has been blocked."... I will check out your project when I have time. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants