Skip to content

Conversation

s-kai273
Copy link
Contributor

@s-kai273 s-kai273 commented Sep 13, 2025

What this PR does / why we need it:
Currently, when executing :normal commands, TextTransformations (e.g., insertions, replacements) are applied one by one to the editor.
This results in multiple sequential updates, which introduces unnecessary overhead and leads to degraded performance, especially for long text insertions or macro executions.

This PR modifies the implementation so that all relevant TextTransformations are aggregated and then applied in bulk.
By reducing the number of editor update operations, overall performance is improved while preserving correctness of transformations.

Which issue(s) this PR fixes

Special notes for your reviewer:

  • Please confirm that batched application of TextTransformations preserves the same cursor behavior and side effects as the previous per-step execution.
  • Performance gains should be especially noticeable in scenarios where :normal executes repetitive or large-scale text modifications.

@s-kai273 s-kai273 changed the title Feature/improve normal command performance Improve normal command performance Sep 13, 2025
@s-kai273 s-kai273 marked this pull request as draft September 13, 2025 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant