Menu

#8 slow launching using unencap flag

closed-fixed
nobody
5
2008-01-15
2007-12-20
mitch
No

jon reported that he was getting slow down after many unencap files built up in his temp folder, and that deleting them solved the slow down. unanswered question: why should many files here slow us down???

"Have noticed that each subsequent run of my oculo model takes longer. Figured out it’s something to do with all the files in C:\Program Files\SystemML\BRAHMS\temp. Deleting them fixes the problem.

Not sure why this would cause prob? Maybe matlab keeping file handles open?

Jon"

problem it turns out is solvable as "could speed this up a lot simply by starting with a time-based prefix to the temp filename (or a random one, even, or both!). this way you'd be unlikely to be searching for more than one file before you found one that was allowd. - demo code in my project brahms folder under "jon" sub-folder." because otherwise matlab is searching through potentially many many files and it perhaps has a slow implementation of exist().

however, in addition we need to clear these files up. i will submit a separate bug for this.

(workaround, of course, is to manually clear the temp folder when this becomes a problem).

Discussion

  • mitch

    mitch - 2008-01-15

    Logged In: YES
    user_id=1603352
    Originator: YES

    we now use unique (based on time) instance id to generate filenames, avoiding the long search

     
  • mitch

    mitch - 2008-01-15
    • status: open --> closed-fixed
     

Log in to post a comment.