unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#73563: [Ben Simms] Performance bottleneck in ns_draw_fringe_bitmap
       [not found] <CALNBX0aNy78GFVTfR_4O6hdeOcBiFLiKUJSi+kVbciXqLOd+jw@mail.gmail.com>
@ 2024-09-30  7:21 ` Stefan Kangas
  2024-09-30 12:26   ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Kangas @ 2024-09-30  7:21 UTC (permalink / raw)
  To: 73563; +Cc: Ben Simms

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

I'm forwarding this to the bug tracker so that we don't lose track of
it.

Original message:
https://lists.gnu.org/r/emacs-devel/2024-06/msg00900.html

-------------------- Start of forwarded message --------------------
From: Ben Simms <ben@bensimms.moe>
Date: Wed, 26 Jun 2024 13:56:43 +0200
Subject: Performance bottleneck in ns_draw_fringe_bitmap
To: emacs-devel@gnu.org

[-- Attachment #2: Type: text/plain, Size: 67 bytes --]

-------------------- End of forwarded message --------------------

[-- Attachment #3: Type: text/html, Size: 23281 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#73563: [Ben Simms] Performance bottleneck in ns_draw_fringe_bitmap
  2024-09-30  7:21 ` bug#73563: [Ben Simms] Performance bottleneck in ns_draw_fringe_bitmap Stefan Kangas
@ 2024-09-30 12:26   ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2024-09-30 12:26 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: ben, 73563

> Cc: Ben Simms <ben@bensimms.moe>
> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Mon, 30 Sep 2024 07:21:03 +0000
> 
> Hi all, I recently started using Emacs (ns) HEAD on an ARM macos sonoma
> system.
> 
> I've noticed that ns_draw_fringe_bitmap is a fairly large performance sink
> when using pixel scrolling (to the point of 99% of cpu time being inside this
> function, with Emacs drawing at approx 5Hz). The slowness here isn't as
> obvious when not pixel scrolling, presumably because Emacs never tries to
> redraw at 60+Hz otherwise.
> 
> I have performed some profiling and discovered that in my observed worse case
> situation, of the 99% of cpu time spent in ns_draw_fringe_bitmap, approx 50%
> is spent in [NSBezierPath copy], and approx 30% in [NSBezierPath fill].

According to the posted profile, ns_draw_fringe_bitmap takes much less
than 99% of CPU time, somewhere around 10%.  What am I missing?





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-30 12:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CALNBX0aNy78GFVTfR_4O6hdeOcBiFLiKUJSi+kVbciXqLOd+jw@mail.gmail.com>
2024-09-30  7:21 ` bug#73563: [Ben Simms] Performance bottleneck in ns_draw_fringe_bitmap Stefan Kangas
2024-09-30 12:26   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).