WordPress.org

Support

Support » Plugins and Hacks » WordPress File Monitor Plus » [Plugin: WordPress File Monitor Plus] Feature Request :Monitor/limit RAM-usage in scanning paths in

[Plugin: WordPress File Monitor Plus] Feature Request :Monitor/limit RAM-usage in scanning paths in

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Scott Cariss

    @l3rady

    While a PHP script can monitor how much memory is being used I can see no way to alter my script to use less memory.

    If you are getting out of memory errors then you need to raise your memory allowance or scan less dirs.

    I’ve been through the entire code and re-wrote most of it in the latest versions and I cannot see where I can optimize any further.

    If you have some ideas on how I can make it more efficient or use less memory then I’m all ears.

    Plugin Author Scott Cariss

    @l3rady

    OK have looked at a different method of scanning and here is my results

    Existing method:
    Files: 1771
    Memory Used: 834720
    Time Taken: 0.41s

    New Method:
    Files: 1771
    Memory Used: 669136
    Time Taken: 0.54

    So the new method uses less memory but took longer to run…

    I did a scan of 106070 files and this is what I got:
    Old Method: 31237920
    New Method: 20201384

    So when scanning larger amounts of data you really start to get advantages in memory usage with the new scan method.

    Only problem is where you are winning in one you are loosing in another (time).

    Also the tests I preformed were without file/dir exclusion logic. I will investigate further at a later date

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WordPress File Monitor Plus] Feature Request :Monitor/limit RAM-usage in scanning paths in’ is closed to new replies.
Skip to toolbar