tjibbevanderlaan / chromeos-filesystem-sftp

ChromeOS app to access SFTP server
https://chrome.google.com/webstore/detail/shared-network-folder-sft/gbheifiifcfekkamhepkeogobihicgmn
BSD 3-Clause "New" or "Revised" License
82 stars 21 forks source link

Listing directories very slow. #28

Closed mtomasz-chromium closed 9 years ago

mtomasz-chromium commented 9 years ago

For a directory with 20 files, it takes couple of minutes to list them. Listing a directory with 2 files only is not so much faster, it's also at least a minute.

yoichiro commented 9 years ago

This implementation executes "connecting, handshaking, concrete request sending and closing" against each API calling. Therefore, if the handshaking takes a long time, the response will become too late...

mtomasz-chromium commented 9 years ago

Can we reuse connections?

yoichiro commented 9 years ago

@mtomasz-chromium I just merged some diff to the master branch to fix this issue. Until now, "connection, handshake, send request, close" steps were executed for each API calling. Instead, the next version uses one connection to access to all APIs. However, all API callings will be executed as serial. I expect that the performance of the next version will be increaded. #31

yoichiro commented 9 years ago

@mtomasz-chromium Probably, this issue will be fixed at same time as #41.

yoichiro commented 9 years ago

@mtomasz-chromium I close this issue because the cache layer has already been released.