]> git.eshelyaron.com Git - emacs.git/commit
Speed up 'replace-buffer-contents' some more
authorEli Zaretskii <eliz@gnu.org>
Tue, 3 Jul 2018 19:16:20 +0000 (22:16 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 3 Jul 2018 19:16:20 +0000 (22:16 +0300)
commit0dce5e59206db7bd0b9cd43ae712272105300ae4
tree3b6419186379ec081c719c3b08d1482af456f024
parent00fdce071cf2918277f99ff4ed10e5599cefb626
Speed up 'replace-buffer-contents' some more

* src/editfns.c (EXTRA_CONTEXT_FIELDS): New members beg_a and beg_b.
(Freplace_buffer_contents): Set up ctx.beg_a and ctx.beg_b.
(buffer_chars_equal): Use ctx->beg_a and ctx->beg_b instead of
calling BUF_BEGV, which is expensive.  This speeds up the recipe
in bug#31888 by 30%.
src/editfns.c