Re: What are the accepted values for "Dialog Toolkit" in the latest betas?
"Espen Sand" <[email protected]> Tue, 11 Jan 2011 13:26:05 +0100
| Newsgroups | gmane.comp.web.opera.linux |
|---|---|
| Organization | Opera Software ASA |
| Message-ID | <[email protected]> |
On Sat, 08 Jan 2011 20:05:33 +0100, Kenneth Crudup <[email protected]> wrote: > > On Sat, 8 Jan 2011, [email protected] wrote: > >> How many files and/or sub directories do you typically have in >> "problematic" >> directories? I assume the number is high since you mention it. > > I save all my files to the same directory: > > $ ls | wc -l > 54411 > $ find . -type d | wc -l > 15 > $ > >> Is it a regular local native file system? > > Yeah, ext4. > >> It might be that it is not stat'ing alone but also filtering and >> populating the list that takes time. > > When I looked at the "X11" file selector with "strace", the 100% CPU was > due to back-to-back "stat(2)" and "gettimeofday(2)" calls for every file > in the filesystem. I examined the code yesterday using a directory with 50000 files (empty files, but that should not matter). The X11 file selector spent more than 45 minutes to open that directory. I gave up after that. I have investigated the code and there were a few things that certainly did not scale. Loads in 1.7 seconds after the fix. That fix will be in 11.1 I also made a small test program that called stat(2) and gettimeofday(2) for each file. It spent approx. 0.1 seconds going through all of them. So that is not a problem. -- Espen Sand -- Opera-Linux: https://list.opera.com/mailman/listinfo/opera-linux More lists: https://list.opera.com/mailman/listinfo/ Unsubscribe: mailto:[email protected]?subject=unsubscribe