1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-07-14 20:28:59 +00:00
6502bench/SourceGenWPF/Sandbox
Andy McFadden a7d66e67e0 Fiddle with selection
There was a bigger change here, but the approach turned out to
have some problems with large sets.  The current app saves and
restores the selected rows when you make an edit, retaining the set
of selected bytes even if the number of lines changes (maybe you
reformatted bytes into a string).  There's no way to do that quickly
with WPF when the number of selected items gets large (say 10K+).
I will probably just cap the selection, and refuse to restore it if
it exceeds a certain size.

The ListView SelectedItems management seems to use an O(n^2) (or
worse) algorithm.  It might be trying to verify that items being
added to SelectedItems actually exist in Items -- I can see it
calling Contains().  Whatever the case, it's a big step backward
performance-wise from WinForms.  Yay WPF.

See the DisasmUiTest project's Selection Test to see what I tried.
2019-05-29 17:39:36 -07:00
..
DomainManager.cs Copy some non-UI code over 2019-05-02 15:45:40 -07:00
PluginDllCache.cs Copy some non-UI code over 2019-05-02 15:45:40 -07:00
ScriptManager.cs Copy some non-UI code over 2019-05-02 15:45:40 -07:00
Sponsor.cs Fiddle with selection 2019-05-29 17:39:36 -07:00