LB Booster
General >> General Board >> LBB faster than Windows http://lbb.conforums.com/index.cgi?board=general&action=display&num=1464174809 LBB faster than Windows
Post by Hans on May 25th, 2016, 11:13am
I noticed the following in several of my programs:
After writing to a file and closing it, I try to rename that file with "NAME". This often fails, but not always. The problem did not occure wth LB. I suspected that closing the file by Windows takes some time. So I paused for 50 milliseconds fore renaming. This worked!
Conclusion: LBB is faster than LB and sometimes faster than Windows.
Hans
Re: LBB faster than Windows
Post by Richard Russell on May 25th, 2016, 12:57pm
After writing to a file and closing it, I try to rename that file with "NAME". This often fails, but not always.
You may find that this has something to do with your virus scanner (assuming you have one) rather than Windows itself. Such programs often monitor file creation, so that they can scan each new file as soon as it appears; that may have the effect of 'locking' the file for a short while.
As you can guess, the NAME statement in LBB simply calls the Windows MoveFile API. Indeed this one-line program:
Code:
NAME a$ AS b$
gets translated to this in LBB, as you can see by selecting 'Show LBB pane' in the Options menu: