Track dirtyness per item (#26237)

This reduces the number of multibuffer syncs when starting the editor
with 80
files open in the Zed repo from 10,000,000 to 100,000 by avoiding
O(n**2)
dirtyness checks.

Release Notes:

- Fixed a beachball when restarting in a large repo with a large number
open files
f373383fc1Conrad Irwin committed on 3/6/2025, 10:12:56 PM· committed by GitHubparent263d9ff
3 files changedLine totals unavailable