• Eli Zaretskii's avatar
    Speed up 'replace-buffer-contents' some more · 0dce5e59
    Eli Zaretskii authored
    * 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%.
    0dce5e59
editfns.c 173 KB