APPROVE COMMIT
NOTE: This patch has been committed
# HG changeset patch
# User Aidan Kehoe <kehoea(a)parhasard.net>
# Date 1530363290 -3600
# Sat Jun 30 13:54:50 2018 +0100
# Node ID 1934022c81ce664c730d89fc5f3eea24106eb091
# Parent 6e9d292225805586dc1b0ddf225fae19b53e0d55
Speed up check_window_subwindow_cache() a little, glyphs.c
src/ChangeLog addition:
2018-06-30 Aidan Kehoe <kehoea(a)parhasard.net>
* glyphs.c (check_window_subwindow_cache):
Use elisp_maphash_unsafe() here, we can't call Lisp, and the
copy_compress_hentries() is relatively expensive.
diff -r 6e9d29222580 -r 1934022c81ce src/ChangeLog
--- a/src/ChangeLog Sun Jun 24 11:39:08 2018 +0100
+++ b/src/ChangeLog Sat Jun 30 13:54:50 2018 +0100
@@ -1,3 +1,9 @@
+2018-06-30 Aidan Kehoe <kehoea(a)parhasard.net>
+
+ * glyphs.c (check_window_subwindow_cache):
+ Use elisp_maphash_unsafe() here, we can't call Lisp, and the
+ copy_compress_hentries() is relatively expensive.
+
2018-06-24 Aidan Kehoe <kehoea(a)parhasard.net>
* doprnt.c (parse_doprnt_spec):
diff -r 6e9d29222580 -r 1934022c81ce src/glyphs.c
--- a/src/glyphs.c Sun Jun 24 11:39:08 2018 +0100
+++ b/src/glyphs.c Sat Jun 30 13:54:50 2018 +0100
@@ -673,9 +673,9 @@
assert (!NILP (w->subwindow_instance_cache));
- elisp_maphash (check_instance_cache_mapper,
- w->subwindow_instance_cache,
- STORE_LISP_IN_VOID (window));
+ elisp_maphash_unsafe (check_instance_cache_mapper,
+ w->subwindow_instance_cache,
+ STORE_LISP_IN_VOID (window));
}
void
--
‘As I sat looking up at the Guinness ad, I could never figure out /
How your man stayed up on the surfboard after forty pints of stout’
(C. Moore)
Show replies by date