11-08-2023, 03:44 PM
(11-07-2023, 07:45 PM)SMcNeill Wrote:Bear in mind that I tried this with the antivirus disabled and it still had the same result.(11-07-2023, 07:37 PM)SpriggsySpriggs Wrote: Quality of life fixes are always the best ones. Just little things that make something a tiny bit faster or easier. Love it. Binary is the way to go.
I doubt it's the change over to BINARY which causes the speed increase -- after all, behind the scenes, *all* file writing methods end up translating to the same C source routines. The difference here is from writing the data one line at a time, which the VPN then does data/virus checking on one line at a time, verses writing all the data at once and only having a single run of the data/virus checker.
I'd imagine that there's probably a system setting somewhere that one could play around with and tweak to whitelist the VPN directory to stop virus checking, and another setting elsewhere to turn off data transfer verification, but those aren't anything which we could actually change for an user. The switch from multiple writes to a single write is easy enough, and it seems to solve the issue here, so I've already pushed the change into the repo for the other devs to look over and review. If it all passes muster, then the next version of QB64PE should start doing file writes all at once for us, rather than line-by-line as it does currently.
Because of the way an IPsec VPN works, there is a penalty for transferring the same data in smaller chunks vs 1 single large chunk. There is overhead for each transfer. When you have additional transfers, it takes additional time that the single transfer does not have. I believe this is where (at least part) the difference in transfer comes from.
It works now and thank you. Funny story, years ago this issue caused a critical file to become deleted (was not backed up...that is another story) and although the rewrite took 6 months, it brought about changes that ultimately were needed in another project and in the end made a very lucrative contract possible! Sometimes there is a diamond to be found in a turd!