Mihai Galos

Results 58 comments of Mihai Galos

Hi @str4d, can we move forward with this PR or would you rather close it?

This will list all identities for plugged in YubiKeys: ```bash $ age-plugin-yubikey --identity > identities ``` You can then encrypt to multiple identities: ```bash $ identities=$(cat identities | grep Recipient...

BTW: the actual keys stored on the Yubikeys are still different^.

> How are you testing this? Very flat `cargo run --`, not sure how relevant it is. I see a 6-9% CPU usage on my old i5 (details below). Maybe...

I was curious so I profiled the `release` binary. I don't see anything very strange, certainly not related to `rng`: ![image](https://user-images.githubusercontent.com/16443090/173127140-3eb9f098-d5a9-4827-8cb7-ef2e5b125e6e.png) [callgrind_traces.tar.gz](https://github.com/cowboy8625/rusty-rain/files/8881215/callgrind_traces.tar.gz)

I see you were already on the right track [here](https://github.com/cowboy8625/rusty-rain/blob/3315b88acf2c2286d34af86af3b6fedc07bdb6d4/src/term.rs#L8-L13), `draw` is taking `93%` of all CPU cycles: ![image](https://user-images.githubusercontent.com/16443090/173130381-771acd39-3946-42bf-930f-3abb1bb6c355.png)

> I would have to do more research to be sure but if I remember correctly when `queue`ing up a write call for the terminal if the queue exceeds a...

Potentially relevant: [this](https://github.com/crossterm-rs/crossterm/issues/628).

Would you consider using a different crate for outputting to the screen? [termatrix](https://github.com/joeledwards/termatrix) which is using `termion` is nowhere near as cool as your take, but is

> Rather than printing each character which can be a lot if your using the shading flag. Printing each row or Printing the hole screen at once could improve performance....