emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 6e5d79c048: Display show-paren-context-when-offscreen in chil


From: Tassilo Horn
Subject: Re: master 6e5d79c048: Display show-paren-context-when-offscreen in child frame
Date: Tue, 08 Feb 2022 11:06:04 +0100
User-agent: mu4e 1.7.7; emacs 29.0.50

martin rudalics <rudalics@gmx.at> writes:

>> Of course, it depends on use-case.  But for show-paren where there's
>> `show-paren-delay' anyhow it doesn't really matter from my POV.
>>
>> FWIW, I don't have posframe installed but tried this benchmark which is
>> quite similar:
>>
>>    (benchmark 10
>>               '(show-paren--show-context-in-child-frame "foobar"))
>>    ;Elapsed time: 1.178163s (0.047553s in 3 GCs)
>
> Does that make the child frame invisible in between?  If not, you're
> comparing apples and oranges

It creates the child-frame invisibly, then eventually calls
`make-frame-visible'.

But I can also use this recipe and get pretty much the same times.

  (setq frame (make-frame `((parent-frame . ,(window-frame)))))
  (benchmark 10
             (lambda ()
               (make-frame-invisible frame)
               (make-frame-visible frame)))

Bye,
Tassilo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]