On Oct 24, 2010, at 12:35 AM, Robert Purves wrote: > > Robert Covington wrote: > >> I am not sure when it started, haven't opened it up in it for a >> long time, but for some reason, FB Editor 5 is taking 40 seconds >> (yep, 40 seconds) to open my Compositor project, something that >> takes the FB4 editor about 1.5 sec. >> ? Somebody 'optimize' the project manager a while back? :) >> I have some editor source will try to debug it, but not much time >> right now. The time seems like an overly long iterative loop or >> something is going on. >> Project has 37 groups, 477 files. > > I made a project with 1000 files. On my Mac, the native Intel > editor opens the project in a small fraction of a second. With the > editor set for PPC/Rosetta there is a noticeable delay but it's > only about 0.5 s. > > Robert P. Are your 1000 files all full of different data? (sstr issue perhaps?) Even the Editor project opens slow here, not nearly as long a time, but not like it should be. (14 seconds). The Editor is not a Microsoft optimized product, yet it is functioning as one for me here. :( Now I know that I have opened up Compositor in FBtoC way back, so it must have started with 5.0 vintage I'd guess? I added a log tracker to Fn OpenProject and associated calls. The loop in Fn ReadProjectIntoDataBase is the culprit, 2500 ticks. For each item added during that loop (just below For to bottom), it takes 5 to 9 ticks. For each call to Fn AddItem within that loop, that part takes 2 to 6 ticks. "Item Added" is total time per item from loop start to loop end...that's ticks reset just under the For, ticks counted just above Next. "Fn AddItem" is the call in the middle of the loop. It is likely the bulk of the time, but not all. Robert Sample Muck (snipped) DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 Add Container Groups 0 Item Added 0 DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 DoesfileExist + Find 0 Fn AddItem 2 Item Added 5 DoesfileExist + Find 0 Fn AddItem 4 Item Added 7 DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 DoesfileExist + Find 0 Fn AddItem 2 Item Added 5 DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 DoesfileExist + Find 0 Fn AddItem 2 Item Added 5 Add Container Groups 0 Item Added 0 DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 Add Container Groups 0 Item Added 0 DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 DoesfileExist + Find 0 Fn AddItem 3 Item Added 5 DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 Add Container Groups 0 Item Added 0 DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 Add Container Groups 0 Item Added 0 DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 DoesfileExist + Find 0 Fn AddItem 5 Item Added 7 DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 DoesfileExist + Find 0 Fn AddItem 3 Item Added 5 Add Container Groups 0 Item Added 0 DoesfileExist + Find 0 Fn AddItem 2 Item Added 7 DoesfileExist + Find 0 Fn AddItem 3 Item Added 5 DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 DoesfileExist + Find 0 Fn AddItem 3 Item Added 6 DoesfileExist + Find 0 Fn AddItem 2 Item Added 5 DoesfileExist + Find 0 Fn AddItem 3 Item Added 5 DoesfileExist + Find 0 Fn AddItem 2 Item Added 5 Add Container Groups 0 Item Added 1 DoesfileExist + Find 0 Fn AddItem 0 Item Added 0 ReadAllWPos 0 Total Time FN ReadProjectIntoDataBase: 2705 // logging added some time, usual is 2500'ish