cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.76k stars 176 forks source link

Hanging after each command with zsh #317

Open arlyon opened 1 year ago

arlyon commented 1 year ago

Hi

I am using this with zinit with the setup commands in the readme, and have discovered that, with a db size of around 25,000, every command hangs for about 3-5 seconds. I can't really figure out why, since it running mcfly add directly runs in a few milliseconds, but I have had to disable the plugin for now.

Is this known behaviour?

Alex

cantino commented 1 year ago

No, I’ve never seen this behavior. Is it a reasonably fast computer?

On Fri, Dec 16, 2022 at 7:15 AM Alexander Lyon @.***> wrote:

Hi

I am using this with zinit with the setup commands in the readme, and have discovered that, with a db size of around 25,000, every command hangs for about 3-5 seconds. I can't really figure out why, since it running mcfly add directly runs in a few milliseconds, but I have had to disable the plugin for now.

Is this known behaviour?

Alex

— Reply to this email directly, view it on GitHub https://github.com/cantino/mcfly/issues/317, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAUO63Z56ZB4C3S3A6BOUDWNSBPVANCNFSM6AAAAAATBCUXYI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

arlyon commented 1 year ago

5850U 16 threads so pretty snappy. Is there a way to enable verbose logging for the zsh integration (perhaps exposing the rust logging / tracing?). I'll attempt to get some logs with timestamps.

cantino commented 1 year ago

You could make a temporary file containing the init script and add echo statements to see where it's hanging, perhaps? See this comment: https://github.com/cantino/mcfly/issues/313#issuecomment-1352438906