[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about üarent-frame changes
From: |
Gerd Möllmann |
Subject: |
Re: Question about üarent-frame changes |
Date: |
Wed, 25 Sep 2024 12:17:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Gerd Möllmann <gerd.moellmann@gmail.com> writes:
> Robert Pluim <rpluim@gmail.com> writes:
>
>> martin> Reparenting is useful because you can set up one child frame for
>> some
>> martin> special purpose, make it invisible when you don't need it, and
>> move it
>> martin> to another frame and make it visible there whenever you want to.
>> On
>> martin> GUIs, this approach has the advantage that you can avoid the (at
>> least
>> martin> here) costly process of setting up frame faces every time anew.
>> Emacs
>> martin> tooltips do that by default and I recall that showing a tooltip
>> every
>> martin> time incurred two entire GC cycles here.
>>
>> Would setting up frame faces be that expensive on tty? Iʼd really love
>> to have tty child frames, even if they were not blazingly fast.
>
>> From what I've seen so far, it's pretty fast, but OTOH my machine is
> pretty fast (M1 pro). Let's see how it does when I'm a bit further. At
> least hiding frames on ttys should be there before I can really try it
> with posframe. Maybe also moving/resizing also.
I think I can say now that it will probably be faster than on GUI, at
least on macOS. Running
(defun my-make-child ()
(interactive)
(make-frame `((parent-frame . ,(selected-frame))
(background-color . "gray10")
(foreground-color . "white")
(top . 15)
(left . 40)
(width . 80)
(height . 25))))
(defun my-time-child ()
(interactive)
(dotimes (i 500)
(let ((f (my-make-child)))
(sit-for 0)
(delete-frame f))))
(benchmark-run 1 (my-time-child))
shows 24s with GUI, and 8s on tty. I'm using Alacritty, in case that matters
(for the KKP keyboard support, not for performance).
- Re: Question about üarent-frame changes, (continued)
- Re: Question about üarent-frame changes, Robert Pluim, 2024/09/18
- Re: Question about üarent-frame changes, Gerd Möllmann, 2024/09/18
- Re: Question about üarent-frame changes,
Gerd Möllmann <=
- Re: Question about üarent-frame changes, Gerd Möllmann, 2024/09/25
- Re: Question about üarent-frame changes, martin rudalics, 2024/09/25
- Re: Question about üarent-frame changes, Gerd Möllmann, 2024/09/25
- Re: Question about üarent-frame changes, Eli Zaretskii, 2024/09/25
- Re: Question about üarent-frame changes, Gerd Möllmann, 2024/09/25
- Re: Question about üarent-frame changes, Gerd Möllmann, 2024/09/26
- Re: Question about üarent-frame changes, Gerd Möllmann, 2024/09/26
- Re: Question about üarent-frame changes, Eli Zaretskii, 2024/09/26
- Re: Question about üarent-frame changes, Eli Zaretskii, 2024/09/26
- Re: Question about üarent-frame changes, Gerd Möllmann, 2024/09/28