iTermGraphDatabase persistence is very inefficient
Performance issue
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: Build 3.5.20220510-nightly
- OS version: macOS Monterey 12.5 Beta (21G5027d)
- Attach
~/Library/Preferences/com.googlecode.iterm2.plist
here (drag-drop from finder into this window) - Attach a debug log, if possible.
- Attach a screen capture video if it would make the reproduction steps clearer.
- Please attach a process sample
PLEASE ATTACH YOUR PLIST FILE FOR BUG REPORTS! Seriously! I'll probably ask you for it if you don’t.
Detailed steps to reproduce the problem
- Produce a lot of output. (For example, use iTerm for while.)
- Switch between iTerm and another window.
What happened
iTerm shouldn't use a CPU core for long periods of time. Here's an Instruments trace: iTerm.trace.zip
What should have happened
iTerm does a bunch of work trying to save the graph database or something.