News for hackers. Stuff that matters.
Re:Atuin – Magical Shell History by javrin on Wednesday February 21, 2024 @10:44PM (#39462990)
Been using atuin for a couple months now on Windows in bash. Its a very nice tool however I've been experiencing a huge lag sometimes after typing just one character. Intuition says there could be the database performance is lacking or Im missing some configuration. Anyone else experiencing something similar?
Re:Atuin – Magical Shell History by from-nibly on Wednesday February 21, 2024 @10:49PM (#39463025)
Could be a disk Io issue. I know git used to use a nieve approach on windows and it make git incredibly slow. Something you wouldn't notice just using git but when you made it part of your prompt it would lag for a good second and a half just pressing enter.
Re:Atuin – Magical Shell History by vladvasiliu on Thursday February 22, 2024 @03:14AM (#39464518)
Yup, I'm getting this sometimes on Linux.

There's been a recent update (not sure which version, I don't have my Linux box on hand to check) where it now started logging some timeout waiting for a lock on the database.

I don't type commands in multiple shells at the same time, so not sure what's locking the db. I also don't use remote sync (explicitly disabled in the config).

Re:Atuin – Magical Shell History by happens on Thursday February 22, 2024 @08:58AM (#39467137)
Are you on ZFS by any chance? There's a bug with SQLite which can lock the thread for a few seconds, I had the same problem. Here's the issue I created, with several workarounds included. My current workaround is to have a separate dataset without sync for the atuin directory.

https://github.com/atuinsh/atuin/issues/952