Old 10-15-2011, 08:20 PM   #1
jcony
Junior Member
FlashFXP Beta Tester
 
Join Date: Nov 2006
Posts: 26
Default queue optimization with identical remark

If you have a queue with the same source and destination site, but the items in your queue are going different ways, FlashFXP will disconnect and reconnect. Wouldn't it be more efficient to just retain the connection?

Example:

ARROW, NAME, TARGET, REMARK
<=, File1, /UPLOAD, SITEA TO SITEB
=>, File2, /UPLOAD, SITEA TO SITEB

Will reconnect to both sites inbetween File1 and File2 when FlashFXP is already connected to the required servers.

Just another minor thing that made me go hmmmmm :P
jcony is offline  
Old 10-16-2011, 09:45 AM   #2
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

When you queue an item for transfer the direction of the transfer defines which side is used to perform the transfer.

Typically when you connect to two sites and queue a file from Site A to Site B and then to Site B to Site A the two items in the queue look like this.

ARROW, NAME, TARGET, REMARK
<=, File1, /UPLOAD, SITE A TO SITE B
=>, File2, /UPLOAD, SITE B TO SITE A


From your explanation above it would appear that you are performing two separate steps where Site A is on the left for the first item and then on the right for the second, is this correct?

After the first item is transferred FlashFXP determines if it needs to remain connected to the same sites or connect to a new site. In this case the two sites are swapped so FlashFXP disconnects from Site A and Connects to Site B on the left and then disconnects from Site B and connects to Site A on the right.

You are right this is very inefficient and can be optimized, to do this FlashFXP would need to detect this specific type of condition while processing the item and then swap the item direction flag, the source and target don't change only the direction, in this case it would become

ARROW, NAME, TARGET, REMARK
<=, File1, /UPLOAD, SITE A TO SITE B
<=, File2, /UPLOAD, SITE B TO SITE A


I don't see any immediately issues with implementing this type of change, I will look into implementing this change in the next release.
bigstar is offline  
Closed Thread

Tags
file2, flashfxp, queue, reconnect, remark

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:07 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)