When I launch emacsclient or make a new frame it spends ~2s in:
- make-frame 312 42% - frame-creation-function 311 42% - apply 311 42% - #<compiled 0x3edba9> 311 42% - x-create-frame-with-faces 311 42% - face-set-after-frame-default 287 39% + face-spec-recalc 274 37%
I have 523 faces in
frame-face-alist which explains why it's slow. But they all seem to be from packages I use regularly so I can't just get rid off them.
If I replace
face-spec-recalc with an empty function, the new frame loads instantly so I'm pretty sure that's the culprit.
Is there anything I can do to make new frames load faster?
Maybe load faces lazily or cache them somewhere?
I'd be fine with a hack that meant that I had to restart emacs to pick up new faces.