Introduce fast path for the widely used marker operation.
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 6 Jul 2012 05:07:44 +0000 (09:07 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Fri, 6 Jul 2012 05:07:44 +0000 (09:07 +0400)
commit657924ff58fc22a6e57dc8366a20dadf97324c63
tree94e256617a34f005119bcf7481bbbaa41c19a63f
parent6edc3d285d0495d69888018758371abfa4752327
Introduce fast path for the widely used marker operation.
* alloc.c (build_marker): New function.
* lisp.h (build_marker): New prototype.
* buffer.c (clone_per_buffer_values, Fmake_indirect_buffer): Use it.
* composite.c (autocmp_chars): Likewise.
* editfns.c (buildmark): Remove.
(Fpoint_marker, Fpoint_min_marker, Fpoint_max_marker)
(save_restriction_save): Use build_marker.
* marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos): Likewise.
* window.c (save_window_save): Likewise.
src/ChangeLog
src/alloc.c
src/buffer.c
src/composite.c
src/editfns.c
src/lisp.h
src/marker.c
src/window.c