comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Findfile in large directories
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Findfile in large directories [message #50632] Fri, 06 October 2006 07:14 Go to previous message
Wox is currently offline  Wox
Messages: 184
Registered: August 2006
Senior Member
Dear All,

In a widget application I'm making, I have "next file", "previous
file" buttons which do the following:
...
path = findfile(list.path+'*'+list.Format)
nfiles = n_elements(path)
path = SortListFiles(path,list.sortmethod,list.sortseparator)
ind = where(path eq list.path+list.file,count)
...
<take next or previous file (if any) and read/display it>
...

The current loaded file is "list.path+list.file". SortListFiles sorts
the files (in general not just string sort).

However, in directories with up to 1000 or more files (usually also on
an SMB mounted drive), this is rather slow (findfile takes most time).

Any ideas how to make this faster?
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Findfile in large directories
Next Topic: Opening a .isv file

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:30:46 PDT 2025

Total time taken to generate the page: 0.00438 seconds