Results 1 to 10 of 15

Thread: Get_File_Mod_Time too slow!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Posts
    766

    Default Get_File_Mod_Time too slow!

    Hello,

    I have a network folder with 66.000 photos.
    First piece of code take 4 seconds.
    Second piece of code takes more than 10 minutes. The client has the "same code" (code logic) in .NET and it takes 20 seconds.

    Any idea?

    Code:
    Move (Seq_New_Channel()) to iCanal
    If (iCanal <> DF_SEQ_CHANNEL_NOT_AVAILABLE) Begin
        Direct_Input channel iCanal ("dir: \\NETWORKFOLDER\*.jpg")
        If (not(SeqEof)) Begin
            Readln channel iCanal sImagen
            While (not(SeqEof))
                Readln channel iCanal sImagen
            Loop
        End
    
        Send Seq_Release_Channel iCanal
    End
    Code:
    Move (Seq_New_Channel()) to iCanal If (iCanal <> DF_SEQ_CHANNEL_NOT_AVAILABLE) Begin Direct_Input channel iCanal ("dir: \\NETWORKFOLDER\*.jpg") If (not(SeqEof)) Begin Readln channel iCanal sImagen While (not(SeqEof))
    Get_File_Mod_Time ("\\
    NETWORKFOLDER
    \" + sImagen) to dFecha iHora iMinuto iSegundo
    Readln channel iCanal sImagen Loop End Send Seq_Release_Channel iCanal End
    Regards.
    Last edited by Jose; 28-Aug-2019 at 01:03 PM.
    I know, I have to learn a lot of things (english the first thing...)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •