| [ Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]
STR #140
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 3 - Moderate, e.g. unable to compile the software |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Core Library |
Summary: | Fl_File_Chooser::MULTI freezes for large selections |
Version: | 1.1.4rc1 |
Created By: | a.held.computer |
Assigned To: | mike |
Fix Version: | 1.1.4 |
Update Notification: | |
Trouble Report Files:
Trouble Report Comments:
|
#1 | a.held.computer 03:23 Aug 18, 2003 |
| Method Fl_File_Chooser::value() in file Fl_File_Chooser2.cxx has a performance of order O(n*n), where n is the number of selected items. For large selections (500 or more files), this will freeze the file chooser for several minutes on a Windows NT machine. It is especially the call to fl_filename_isdir that is being executed over and over for the same entries. | |
|
#2 | mike 08:32 Aug 18, 2003 |
| Problem acknowledged, however I'm not sure what the fix will be... | |
|
#3 | mike 12:30 Sep 03, 2003 |
| OK, the attached patch should fix the problem; after more research it looks like we add a slash to the end of all directories in the list, so we can just look for that instead... | |
|
#4 | a.held.computer 23:55 Sep 03, 2003 |
| I tested the patch on my Windows 2000 machine (using fltk-1.1.4rc1) and it works like a charm. Instead of waiting for about five minutes to select around 700 files it takes now about two seconds. Thank you very much for your great work! | |
[ Return to Bugs & Features ]
|
| |