Sigma Design Forums  

Go Back   Sigma Design Forums > ARRIS
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 12-15-2008, 03:34 PM
Al Hart Al Hart is offline
ARRIS Development Team
 
Join Date: Jan 2007
Posts: 227
Default Times to get file names across the network

We are trying to track down some reported problems with ARRIS taking a long time to get file names from the network.

If you are having similar problems, or just want to be friendly, perhaps you can help me track this down.

1. Find a directory which is mounted to your machine and which has 500 to 1,000 files in it. (files or folder names)

- If you have a folder with about 500 to 1,000 ARRIS .db files, that would be great

- To get a count of the number of files in the folder, type in DIR. It should report the number of files at the end of the listing.

2. Go to DOS on your machine and type in:

dir m:\folderpath > xxx

where m:\folderpath is the path to your folder.

On my machine, with 1,000 files this takes about 8 seconds.

If it takes much less time on your machine:

2a - make sure you are on a network drive. (When I do this on a local drive, it returns almost immediately)

2b - it you are on a network drive, let us know why it is so fast! (so we can fix our machines)

If it takes much more time on your machine

2c. - try it again, perhaps it is slow the first time, but faster the second time.

2d. - talk to your network administrator, or those of us on the Sigma forum about why your network is so slow.

3. Now lets try the same thing in ARRIS

- start ARRIS

- type in $txgdir('m:\\folderpath')

- be sure to use double back slashes, or a forward slash.

I found it easier to set a variable to the path, and use that:

sdir = 'm:\\folderpath'
$txgdir(sdir)

- If you want to get the time automatically, type in:

t1 = $nstat(#netime); $txgdir(sdir); t2 = $nstat(#netime); !t2 - t1

(you can copy that from here and paste it into the ARRIS command prompt)

This should take about the same amount of time as the DIR command. (On my machine it prints out 8.0)

If it take less than half or more than twice the time for the DOS DIR command, let us know.

4. Finally, navigate to the same folder from the ARRIS File / Open command.

- Even if there no ARRIS .db files in the folder, it should take about the same amount of time to display the empty folder.

- If folders with ARRIS drawings take even longer, then let us know. Perhaps we are trying to read something from each drawing.

5. If anyone has any other results, or thoughts, let us know.

If your times for steps 2, 3 and 4 are all about the same, there is probably nothing we can do from ARRIS to speed things up. We could cache the names of databases, but this would create a problem when you add or remove a drawing from the network drive.
__________________
Al Hart
ARRIS Development Team
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 12:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.