Delete (or Recycle) dialog not modeless

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Delete (or Recycle) dialog not modeless

Post by nas8e9 »

admin wrote:...

If background processing is enabled:
- Copy and move commands are queued IF queuing is enabled, else they are spawned to separate background processes.
- Delete operations are always spawned to separate background processes.
Powerful stuff! At some point, some intelligence about when to go parallel (HD1 > HD2, HD1 > USB1) vs. queued would be even better, but I should leave something for the XYcopy 2.0 wish thread, of course... :D

admin
Site Admin
Posts: 65472
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Delete (or Recycle) dialog not modeless

Post by admin »

nas8e9 wrote:
admin wrote:...

If background processing is enabled:
- Copy and move commands are queued IF queuing is enabled, else they are spawned to separate background processes.
- Delete operations are always spawned to separate background processes.
Powerful stuff! At some point, some intelligence about when to go parallel (HD1 > HD2, HD1 > USB1) vs. queued would be even better, but I should leave something for the XYcopy 2.0 wish thread, of course... :D
Yep, cool. This will be, BTW, very easy to do. The harder stuff is the live progress GUI which is one of the next things I'll do. I'll just might first squeeze in the TXT preview just to get into the coding habit again after 2 weeks of full English breakfast... :wink:

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Delete (or Recycle) dialog not modeless

Post by zer0 »

admin wrote:...The harder stuff is the live progress GUI which is one of the next things I'll do...
If I may cheekily squeeze in a wish there -- an ability to move queued jobs up/down the order. As someone who moves gigabytes of data between partitions/HDDs on a daily basis, the order in which files (or batches of files) arrive to their destination is pretty important to me.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Delete (or Recycle) dialog not modeless

Post by nas8e9 »

admin wrote:If background processing is enabled:
- Copy and move commands are queued IF queuing is enabled, else they are spawned to separate background processes.
- Delete operations are always spawned to separate background processes.
I forgot to ask about intra-partition moves: I assume that, like deletes, they are always spawned to separate background processes and are never queued?

Also, do XYcopy.exe instances handle more than one queue item? By way of an example, when there are two copy jobs in the queue, are they handled (sequentially, of course) by one and the same XYcopy.exe instance or does each queue item always spawns a new XYcopy.exe process?

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Delete (or Recycle) dialog not modeless

Post by zer0 »

nas8e9 wrote:Also, do XYcopy.exe instances handle more than one queue item? By way of an example, when there are two copy jobs in the queue, are they handled (sequentially, of course) by one and the same XYcopy.exe instance or does each queue item always spawns a new XYcopy.exe process?
That's easy to test. Disable queuing, fire up some inter-partition copies and check out Task Manager's process list ;)
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Delete (or Recycle) dialog not modeless

Post by nas8e9 »

zer0 wrote:
nas8e9 wrote:Also, do XYcopy.exe instances handle more than one queue item? By way of an example, when there are two copy jobs in the queue, are they handled (sequentially, of course) by one and the same XYcopy.exe instance or does each queue item always spawns a new XYcopy.exe process?
That's easy to test. Disable queuing, fire up some inter-partition copies and check out Task Manager's process list ;)
*Disable* queueing? :P

For the record, I only see one XYcopy.exe process being spawned to process a 10-item queue, so one XYcopy.exe instance apparently handles more than one queue item.

admin
Site Admin
Posts: 65472
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Delete (or Recycle) dialog not modeless

Post by admin »

zer0 wrote:
admin wrote:...The harder stuff is the live progress GUI which is one of the next things I'll do...
If I may cheekily squeeze in a wish there -- an ability to move queued jobs up/down the order. As someone who moves gigabytes of data between partitions/HDDs on a daily basis, the order in which files (or batches of files) arrive to their destination is pretty important to me.
What about triggering the jobs in the order you want them right away?

admin
Site Admin
Posts: 65472
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Delete (or Recycle) dialog not modeless

Post by admin »

nas8e9 wrote:
admin wrote:If background processing is enabled:
- Copy and move commands are queued IF queuing is enabled, else they are spawned to separate background processes.
- Delete operations are always spawned to separate background processes.
I forgot to ask about intra-partition moves: I assume that, like deletes, they are always spawned to separate background processes and are never queued?

Also, do XYcopy.exe instances handle more than one queue item? By way of an example, when there are two copy jobs in the queue, are they handled (sequentially, of course) by one and the same XYcopy.exe instance or does each queue item always spawns a new XYcopy.exe process?
1. intra-partition moves are never handled by XYcopy but just done by the XYplorer process.
2. Yes, by one and the same XYcopy.exe. When a job is finished XYcopy asks XYplorer if there are more jobs pending and if yes it gets fed the next job right away without terminating/restarting a new XYcopy process.

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Delete (or Recycle) dialog not modeless

Post by nas8e9 »

admin wrote:1. intra-partition moves are never handled by XYcopy but just done by the XYplorer process.
This was the original design for deletes as well, which you changed to accommodate much larger than average deletes. By the same logic, would it be an idea to farm out intra-partition moves to background processing as well?

admin
Site Admin
Posts: 65472
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Delete (or Recycle) dialog not modeless

Post by admin »

nas8e9 wrote:
admin wrote:1. intra-partition moves are never handled by XYcopy but just done by the XYplorer process.
This was the original design for deletes as well, which you changed to accommodate much larger than average deletes. By the same logic, would it be an idea to farm out intra-partition moves to background processing as well?
I don't see a reason for this. These are just modifications of the file tables, no bytes are moved (and no slow DB is updated as is the case with recycle-deletes). They must be fast.

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Delete (or Recycle) dialog not modeless

Post by nas8e9 »

admin wrote:
nas8e9 wrote:
admin wrote:1. intra-partition moves are never handled by XYcopy but just done by the XYplorer process.
This was the original design for deletes as well, which you changed to accommodate much larger than average deletes. By the same logic, would it be an idea to farm out intra-partition moves to background processing as well?
I don't see a reason for this. These are just modifications of the file tables, no bytes are moved (and no slow DB is updated as is the case with recycle-deletes). They must be fast.
I wasn't aware that recycling files has a much larger overhead. Fine with me.

lukescammell
Posts: 744
Joined: 28 Jul 2006 13:15
Location: Kent, UK
Contact:

Re: Delete (or Recycle) dialog not modeless

Post by lukescammell »

admin wrote:
nas8e9 wrote:
admin wrote:1. intra-partition moves are never handled by XYcopy but just done by the XYplorer process.
This was the original design for deletes as well, which you changed to accommodate much larger than average deletes. By the same logic, would it be an idea to farm out intra-partition moves to background processing as well?
I don't see a reason for this. These are just modifications of the file tables, no bytes are moved (and no slow DB is updated as is the case with recycle-deletes). They must be fast.
I see a reason for it - you've obviously never had to work with Sophos Antivirus installed :P It makes even intra-partition moves slow. I know it shouldn't, but I think it check every single file you're "moving" and hence stuff like that can take an age.

I hate Sophos, but have no choice (at work) in having it removed.
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)

admin
Site Admin
Posts: 65472
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Delete (or Recycle) dialog not modeless

Post by admin »

lukescammell wrote:
admin wrote:
nas8e9 wrote:
admin wrote:1. intra-partition moves are never handled by XYcopy but just done by the XYplorer process.
This was the original design for deletes as well, which you changed to accommodate much larger than average deletes. By the same logic, would it be an idea to farm out intra-partition moves to background processing as well?
I don't see a reason for this. These are just modifications of the file tables, no bytes are moved (and no slow DB is updated as is the case with recycle-deletes). They must be fast.
I see a reason for it - you've obviously never had to work with Sophos Antivirus installed :P It makes even intra-partition moves slow. I know it shouldn't, but I think it check every single file you're "moving" and hence stuff like that can take an age.

I hate Sophos, but have no choice (at work) in having it removed.
I saw an additional reason: Isn't it a bit strange/confusing that intra-volume moves are missing from the (Background) Status Log? I could easily generate Huh?-moments with users who are not fully aware of the backgrounding conditions.

Another possibility would be to make it optional:

Background the following operations:
[ ] Copy
[ ] Cross-volume move
[ ] Intra-volume move
[ ] Delete
[ ] Backup

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Delete (or Recycle) dialog not modeless

Post by nas8e9 »

admin wrote:I saw an additional reason: Isn't it a bit strange/confusing that intra-volume moves are missing from the (Background) Status Log? I could easily generate Huh?-moments with users who are not fully aware of the backgrounding conditions.

Another possibility would be to make it optional:

Background the following operations:
[ ] Copy
[ ] Cross-volume move
[ ] Intra-volume move
[ ] Delete
[ ] Backup
I'm a bit confused about the function of the Status Log vs. the Action Log. All file operations are logged by the Action Log, but only background operations are logged in the Status Log. When all file operations are backgrounded, both logs will log all. Other than for diagnostic purposes, what does the Status Log add? Will the Status Log become the queue status window?

I do like the backgrounding of intra-partition moves, but I'm not sure why people would want to disable backgrounding.

admin
Site Admin
Posts: 65472
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Delete (or Recycle) dialog not modeless

Post by admin »

nas8e9 wrote:
admin wrote:I saw an additional reason: Isn't it a bit strange/confusing that intra-volume moves are missing from the (Background) Status Log? I could easily generate Huh?-moments with users who are not fully aware of the backgrounding conditions.

Another possibility would be to make it optional:

Background the following operations:
[ ] Copy
[ ] Cross-volume move
[ ] Intra-volume move
[ ] Delete
[ ] Backup
I'm a bit confused about the function of the Status Log vs. the Action Log. All file operations are logged by the Action Log, but only background operations are logged in the Status Log. When all file operations are backgrounded, both logs will log all. Other than for diagnostic purposes, what does the Status Log add? Will the Status Log become the queue status window?

I do like the backgrounding of intra-partition moves, but I'm not sure why people would want to disable backgrounding.
Action Log and Status Log both can be turned off so they have to be kept independent. Sure they overlap in parts, but internally they are different things for different purposes. "Status Log" might not be a good name for it and add to the confusion.

The Status Log is your diagnostic interface to the job status of XYcopy. I might add some interaction here later (pausing, deleting, reordering jobs) -- not sure yet.

The live progress dialog will be a different window that's directly owned by XYcopy.

Post Reply