This thing is BUGging me since Day 1 !!
#7
Ah, that's interesting you mention the linear relationship between number of files and save time.

tyCache implements a max API function which enumerates auxiliary files. I don't make use of that info myself in tyCache mesh-building code (which would explain your slowdown even though I skip mesh processing during file save)...I simply hand it off to max whenever max asks for it (one example of where max uses the info is to list dependent files of an asset in the Asset Tracker window). The function iterates over the folder that your tyCache points to and returns all relevant filenames. On a normal network this likely takes a few milliseconds, but on a network like the one you're describing, I guess it takes a lot longer for thousands of files.

So my best guess is that max is requesting this enumeration during save/load (which would make sense...so that max can tell you if enumerated files are missing when you load, because the required filenames are stored during save).

Looking further into the problem, I can see within my code that the problem is likely related to the functions I use to scan directories for files. Googling the key Windows API calls I'm using leads to various people online complaining about their performance in situations with hundreds of thousands of files (which would further explain terrible performance across your network).

I will see if I can optimize those functions. Send me an email to support@tyflow.com (so I have your email) and I will send you a test build once I implement an alternative method.
  Reply


Messages In This Thread
RE: This thing is BUGging me since Day 1 !! - by tyFlow - 06-13-2021, 06:08 AM

Forum Jump: