On Wed, Jul 2, 2008 at 8:43 AM, Hans-Jörg Bibiko bibiko@eva.mpg.de wrote:
Hi,
I played with 'Show Bundles on Repository' a bit. The only thing is that it is a bit slow.
Is there a reason for using svn list/cat?
My suggestion would it be is to use a direct way by using Net::HTTP.get(URI.parse(url)). It is much mor faster. Furthermore I implemented the entire download stuff in many threads. By using these threads the descriptions are downloaded in roughly 10sec (depending on the band-width of course).
Then I wrote a routine to install one or more bundles (also while fetching the descriptions).
To be fast as possible I cache the already downloaded descriptions. Thus if one invokes that command it looks for a description in the cache. If something was found one sees it at once, but the descriptions are still updated in the background.
I also modified the NIB a bit. If the fetching was finished the progress bar also disappears. Furthermore I include a further progress bar to indicate the install status.
Of course, there are some tiny unsolved issues, e.g. while fetching I select one or more bundle; if the a result of a thread is written to the dialog my selection could disappear.
Anyway, if you want to look at it here is a 10MB movie
http://www.bibiko.de/TM_GetBundle.mov
Is someone interested? Will the getBundle issue be integrated in TM2?
Cheers,
--Hans
I recommend integrating with the textmate gem: http://github.com/wycats/textmate That way any improvements can be nicely segregated into either the front end UI or the backend engine.
The advantage of the textmate gem right now is that it has support for GitHub. And it runs from the terminal.
-- Thomas Aylott subtleGradient.com