Opened 9 years ago
Closed 9 years ago
#640 closed enhancement (fixed)
Rapid access file history can slow startup checking if files exist
Reported by: | Tom Goddard | Owned by: | Tom Goddard |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Core | Version: | |
Keywords: | Cc: | pett@… | |
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
The current file history code checks all the files in the history to see if they have been deleted before showing the icons. With 200 files (current history size limit) this can be time consuming. I have an external USB drive with some data files I opened that are in the history and I believe this drive sleeps and can take a couple seconds to spin up to speed, slowing the ChimeraX startup so it takes 3 or 4 seconds.
For maximum startup speed we should probably not remove the file history entries until the user clicks on one, where we can bring up a dialog and asking of all missing files should be removed from the history. This is what Chimera 1 does I think.
I made file history not check for deleted files at start-up.
Unfortunately clicking a file icon runs an html cxcmd link to open the file and the file history has no way of being notified that the the file was missing. So there was no clear way to have the file history to ask the user at that point if the want to remove deleted files from the history. So instead I added a context menu to the history window with an entry "Remove deleted files". If users can't find this we'll have to find a better way.