timburgess / brackets-ftp-sync

FTP/SFTP for Adobe Brackets
105 stars 19 forks source link

Improve performance over very large filesets #13

Open timburgess opened 10 years ago

timburgess commented 10 years ago

FTP-Sync performs a directory walk and a diff on each file with it's remote counterpart. For projects containing hundreds of files, implement means in which the time taken can be reduced.

Parcye commented 10 years ago

Not only that; changing a : into ; in an open file doesn't result in a upload as the file size is the same.

Maybee open files should always be uploaded?

timburgess commented 10 years ago

Yes, as you say, this is because the file sizes are being compared. A workaround is to just add an extra space.

Ensuring all open files (i.e. all files in the brackets 'working files' area) are synced is a very good idea.

frederichoule commented 10 years ago

Maybe add some checksum too? A simple quick CRC32 on each file. I don't know how it would scale up to a few hundreds files, but it may be worth trying/thinking about it.

lvansnippenburg commented 10 years ago

What about a simple button "Upload just this file" ...

Actually I think by skipping the directories like ".meteor" and "node_modules" and such things will be a lot better.

And if the files modification date is taken into consideration perhaps the checksum can be omitted ...

The current (lack of) speed of the "sync" for me is a show stopper (I have the paid version ...).