The last bit actually should be reordered as follows Hint: Use menu "Empty->Empty Standby List" to clear the cache, , try your app, File->Refresh to refresh the display, then view what files are cached in the "File Summary" tab which can be ordered by path.
Hi Stefan, Forgot to say my tests did conclusively reveal that it is the combined size of the directory that determines the great majority of the response time rather than the number of files for your function. This makes sense when considering it takes time to copy all these files from disk to the cache. Also note I have confirmed that your function does cache the files whereas my faster one doesn't using RamMap from SysInternals. https://learn.microsoft.com/en-gb/sysinternals/downloads/rammap You...
Hi Stefan, The built in function (which uses QFile::size() ) is fast once the files are all added to the MS Windows file cache but that takes ages for large directories (50 seconds in my case) with it blocking in the meantime and actually slows the rest of operating system down overall who is also fighting for the disk cache. I've looked at the QT source code (see below) but got lost at the lower levels. QFileInfo.size() is probably much faster as it seems to use fstat (see below), primarily , which...
Note I nearly have finished a script to create a new timestamped log file each day and also limit the log directory size. However even though the functionality can be implemented in a script it's a rather slow and technical complex way (with a few headaches) for something I think would be worthwhile building in the the app. My intention is to share this script here because there are parts in it that many will find useful (directory size reading, daily log files, execution of external commands, and...
Hi Stefan, Thanks for your prompt reply. Did have some problems trying out your second suggestion as I was pressing "Enter" whilst the cursor was in the send box at the bottom of the page whereas I needed to put the cursor in the Utf8 box. In order to clarify this solution for anyone else reading this here is the full setup. In the Settings "console options" screen set the following : send on enter key: CR In the main screen: Check the "send input" checkbox (at bottom of screen). Click the "Utf8"...
Hi all, For log management purposes it would be useful to have an option create a new log each day and append a date suffix. I note that the current dating option only creates new dated logs on certain conditions and this isn't one of them . The above option would enable an external program to delete old logs after a certain time. Even better would be an internal option to delete old log files after X amount of days. Another good option would be a limit Z on the size of the log directory to prevent...
Hi all, For log management purposes it would be useful to have an option create a new log each day and append a date suffix. I note that the current dating option only creates new dated logs on certain conditions and this isn't one of them . The above option would enable an external program to delete old logs after a certain time. Even better would be an internal option to delete old log files after X amount of days or after Z amount of disk space is taken. Cheers Andy PS In regards to the above...
Hi all, For log management purposes it would be useful to have an option create a new log each day and append a date suffix. I note that the current dating option only creates new dated logs on certain conditions and this isn't one of them . The above option would enable an external program to delete old logs after a certain time. Even better would be an internal option to delete old log files after X amount of days or after Z amount of disk space is taken. Cheers Andy PS In regards to the above...