bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#11822: 24.1; emacsclient terminal mode captures escape characters as


From: Eli Zaretskii
Subject: bug#11822: 24.1; emacsclient terminal mode captures escape characters as text
Date: Thu, 24 Sep 2015 21:46:44 +0300

> In this run, I recorded over 601000 bytes being allocated; about 60% of that 
> (~364000) was done from things called by parse_single_submenu; about half of 
> that (~185000), in turn, was via larger_vector called from ensure_menu_items. 
> The largest of those was a single allocation of 62000 bytes. There were 
> several more of these calls, with smaller sizes, and varying in the nesting 
> depth of single_menu_item and friends.

Can you show the backtrace from the 62000-byte allocation?

> 39104 bytes across 2444 allocations with the Lisp backtrace: 
> set-face-attribute apply face-spec-reset-face face-spec-recalc 
> face-set-after-frame-default x-create-frame-with-faces 
> PVEC_COMPILED@0x121eac8 apply frame-creation-function make-frame 
> make-frame-command funcall-interactively call-interactively command-execute
> 
> 36288 bytes across 2268 allocations with the Lisp backtrace: append apply 
> face-spec-reset-face [… as above]
> 
> 58320 bytes across 3645 allocations via mapcar or the function mapcar 
> applies, called from face-spec-reset-face

This face recalculation dance indeed conses a lot.  It was the worst
offender in my testing.

Anyway, I think this is a separate issue, unrelated to the one that is
the subject of this bug report.





reply via email to

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