FLTK logo

STR #140

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

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:

Receive EMails Don't Receive EMails

Trouble Report Files:


Name/Time/Date Filename/Size  
 
#1 mike
12:29 Sep 03, 2003
str140.patch
2k
 
     

Trouble Report Comments:


Name/Time/Date Text  
 
#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 ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.