Files
oak-gpui/crates
Max Brunsfeld df3bd40c56 Speed up is_dirty and has_conflict (#11946)
I noticed that scrolling the assistant panel was very slow in debug
mode, after running a completion. From profiling, I saw that it was due
to the buffer's `is_dirty` and `has_conflict` checks, which use
`edits_since` to check if there are any non-undone edits since the saved
version.

I optimized this in two ways:
* I introduced a specialized `has_edits_since` method on text buffers,
which allows us to more cheaply check if the buffer has been edited
since a given version, without some of the overhead involved in
computing what the edits actually are.
* In the case of `has_conflict`, we don't even need to call that method
in the case where the buffer doesn't have a file (is untitled, as is the
case in the assistant panel). Buffers without files cannot be in
conflict.

Release Notes:

- Improved performance of editing the assistant panel and untitled
buffers with many edits.
2024-05-16 18:36:20 -07:00
..
2024-05-10 15:50:20 -06:00
2024-05-10 15:50:20 -06:00
2024-04-23 13:31:21 -04:00
2024-04-11 15:36:35 -06:00
2024-05-10 15:50:20 -06:00
2024-04-30 23:31:59 -06:00
2024-05-10 15:50:20 -06:00
2024-05-10 15:50:20 -06:00
2024-05-16 15:13:51 -07:00
2024-05-16 19:43:26 +03:00
2024-04-26 13:25:25 -06:00
2024-05-09 21:08:49 -06:00
2024-05-06 12:58:11 +02:00
2024-05-05 15:02:50 +02:00
2024-04-15 14:21:52 +02:00
2024-05-16 16:55:54 -04:00
2024-05-03 12:50:42 -07:00
2024-05-16 18:32:53 -04:00