Optimize edits using JumpRopeBuf
masterFor high-performance editing, use JumpRopeBuf. This wrapper provides a buffered API that attempts to merge consecutive editing runs (like multiple character insertions) before flushing them to the underlying JumpRope object. This can make editing up to 10x faster.
If a specific method you need is missing from JumpRopeBuf, you can call rope.borrow() or rope.as_mut() to flush pending changes and access the underlying JumpRope instance.