Better CPU utilization/battery life #9564
Labels
C-Architecture
Big architectural things which we need to figure up-front (or suggestions for rewrites :0) )
E-hard
fun
A technically challenging issue with high impact
I've noticed (heard the fan) that, if I have a bunch of files open, and type a comment in
ide_db/src/defs.rs
, CPU usage goes up significantly. This file lives in the core ide crate, so typing it in the worst case can invaidate a bunch of things. Typing a comment shouldn't be that bad.I think there are several things we might want to do here, long-term:
At the same time, I don't think we should use the most obvious strategy of just throttling our updates. Batching up keystrokes together helps with power consumption, but it trades latency for throughput. I believe that, by being smart, we can have both low latency and high throughput --- fundamentally, changing a single file a bit most of the time doesn't change the observed state a lot, we just need to figure out how to not do more than we need to.
The text was updated successfully, but these errors were encountered: