all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#29439: Quadratic complexity in sweep_markers
@ 2017-11-25 17:06 Pip Cet
  2017-11-26  0:01 ` Noam Postavsky
  2017-11-26  0:13 ` Noam Postavsky
  0 siblings, 2 replies; 5+ messages in thread
From: Pip Cet @ 2017-11-25 17:06 UTC (permalink / raw)
  To: 29439

I've sat on this patch for way too long, and I think I previously
reported the issue, but I can't find it right now.

sweep_markers() calls unchain_marker() for every unmarked
marker. unchain_marker() walks the list of all markers in the buffer
for every one of them. This causes performance problems during GC,
since it's O(n^2) in the number of markers per buffer.

I've often noticed this dominating GC time, and in one instance
experienced a GC call that lasted for more than an hour.

At this point I think this is an actual bug, and one that severely
affects at least one user (me).  Please consider fixing this.





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

end of thread, other threads:[~2017-11-27 23:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-25 17:06 bug#29439: Quadratic complexity in sweep_markers Pip Cet
2017-11-26  0:01 ` Noam Postavsky
2017-11-26  0:06   ` Pip Cet
2017-11-26  0:13 ` Noam Postavsky
2017-11-27 23:53   ` Pip Cet

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.