[TxMt] I know this has been done to death but...

Dave Baldwin dave.baldwin at 3dlabs.com
Thu Nov 16 17:08:55 UTC 2006


Just hypothesising here, but doesn't the OS now support file change/ 
addition notifications to allow spotlight to work?  This could be  
used so TM is told when something in its project directories changes  
rather than it having to go check every time.

Dave.


On 16 Nov 2006, at 16:58, James Milne wrote:

> On 16 Nov 2006, at 16:55, Andy Armstrong wrote:
>
>> I've got a project here with 16,500 files in it (75,000 if you  
>> count the subversion metadata). It's a Joomla 1.5 website with a  
>> bunch of content. I have three copies of the site in the project  
>> directory because of the way I'm merging changes from the latest  
>> Joomla SVN into my own source tree.
>>
>> Needless to say switching to and from TextMate causes a  
>> considerable delay - between 5 and 10 seconds on my G4 PowerBook.  
>> I like to flip back and forth between a web browser, terminal and  
>> TM pretty frequently - at times as much as maybe a few times a  
>> minute - so I'm spending a fair proportion of my time waiting for  
>> TM at the moment.
>>
>> Does anyone have any tips for speeding up TM's project scanning?  
>> Obviously I could rearrange my project to move some of the less  
>> frequently used files into another project - but I'd rather not do  
>> that if it's avoidable.
>>
>> It seems that TM only really needs to rescan the directories that  
>> are open in the project drawer and any open files - a full scan  
>> could be then be done lazily if at all. I get the impression it  
>> currently walks the whole directory tree - is that correct? If  
>> it's not doing that what's taking so long?
>
> Yes, it does walk the entire directory structure. I noticed  
> something similar when opening up a project, and ran Sampler on  
> TextMate and found that it was spending all its time querying the  
> file system.
>
> It would be better if TextMate scanned directories on demand- ie  
> when you opened them in the project drawer.
>
> --
> Kind regards,
> James Milne
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate




More information about the textmate mailing list