Skip to content

Explore new text buffer for performance improvement #41042

Closed
@rebornix

Description

@rebornix

Currently our text buffer is on top of an array which stores all lines of a file, it behaves well in most cases (accessing, editing, etc are all fast). When the size of a file or the line breaks count increases, it takes more time to build the text buffer as we are splitting the content by line breaks, and holds more memory. We'll explore some other text buffer implementation to improve the performance and memory usage of above case, with reasonable time loss of line accessing, editing, etc.

Benchmark: Performance and Memory Usage Metrics

  • Model Builder (for file loading)
  • GetLineContent (for display and tokenization)
  • GetLineContent after edits
  • Edits
  • Search and Replace

Metadata

Metadata

Assignees

Labels

plan-itemVS Code - planned item for upcoming

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions