Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue saving across VPN
#17
(11-07-2023, 07:45 PM)SMcNeill Wrote:
(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.  Smile
Bear in mind that I tried this with the antivirus disabled and it still had the same result.

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!
Reply


Messages In This Thread
Issue saving across VPN - by dano - 11-07-2023, 03:08 AM
RE: Issue saving across VPN - by TerryRitchie - 11-07-2023, 03:20 AM
RE: Issue saving across VPN - by SMcNeill - 11-07-2023, 03:43 AM
RE: Issue saving across VPN - by dano - 11-07-2023, 04:20 AM
RE: Issue saving across VPN - by SMcNeill - 11-07-2023, 04:48 AM
RE: Issue saving across VPN - by SpriggsySpriggs - 11-07-2023, 01:40 PM
RE: Issue saving across VPN - by SMcNeill - 11-07-2023, 03:17 PM
RE: Issue saving across VPN - by SMcNeill - 11-07-2023, 03:39 PM
RE: Issue saving across VPN - by SpriggsySpriggs - 11-07-2023, 05:08 PM
RE: Issue saving across VPN - by SMcNeill - 11-07-2023, 05:50 PM
RE: Issue saving across VPN - by dano - 11-07-2023, 06:29 PM
RE: Issue saving across VPN - by TerryRitchie - 11-07-2023, 06:38 PM
RE: Issue saving across VPN - by SpriggsySpriggs - 11-07-2023, 07:37 PM
RE: Issue saving across VPN - by SMcNeill - 11-07-2023, 07:45 PM
RE: Issue saving across VPN - by dano - 11-08-2023, 03:44 PM
RE: Issue saving across VPN - by SpriggsySpriggs - 11-07-2023, 08:24 PM
RE: Issue saving across VPN - by SMcNeill - 11-08-2023, 01:53 AM
RE: Issue saving across VPN - by SMcNeill - 11-17-2023, 03:24 PM
RE: Issue saving across VPN - by dano - 11-17-2023, 07:11 PM
RE: Issue saving across VPN - by SMcNeill - 11-17-2023, 08:13 PM
RE: Issue saving across VPN - by dano - 11-30-2023, 03:50 AM
RE: Issue saving across VPN - by SMcNeill - 11-30-2023, 04:44 AM



Users browsing this thread: 3 Guest(s)