topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday December 14, 2024, 12:46 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Some Performance Questions and Suggestions  (Read 18762 times)

nontroppo

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 649
  • spinning top
    • View Profile
    • nontroppo.org
    • Donate to Member
Some Performance Questions and Suggestions
« on: October 03, 2005, 09:27 AM »
On my normal laptop I never bothered with performance as FARR was snappy enough. However on an older machine with a slower HD, I notice significant delays on startup. So I used the excellent Filemon from Sysinternals to log all file activity by FARR.

On startup, FARR seems to perform a complete scan through its specified folders. This requires ~3800 open/read/writes to be performed. This seems pointless as I have it set to show the history on startup.

Then when each letter is typed, FARR rescans everything again, another 3800 file operations per letter of the incremental search.

First off, can we stop FARR from reading the folders on startup, just read its history list. Second, some kind of directory cache would drop file access a lot and speed up the incremental search. I'm not suggesting a permanent cache, only a memory cache. It may consume some extra memory, but I believe you/Windows flush memory when FARR is hidden after a launch anywayso that would not be permanent.
FARR Wishes: Performance TweaksTask ControlAdaptive History
[url=http://opera.com/]

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Some Performance Questions and Suggestions
« Reply #1 on: October 03, 2005, 09:36 AM »
it shouldnt be performing a special scan of folders at startup until you start searching... i'll have to check that out.

as for caching searches... this gets to the whole idea of whether to use an index/database.. which we may add in a later version.
windows itself should cache directory indices which should reduce search time on incremental search - trying to add our own caching probably wouldnt do too much good.  using a real file index might though, so we should talk about this again in a bit, at least as an option at some point.. or piggybacking on another index (like google/msn/yahoo desktop search).

kfitting

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 593
    • View Profile
    • Donate to Member
Re: Some Performance Questions and Suggestions
« Reply #2 on: October 03, 2005, 09:45 AM »
While I do not have any hard data, I was wondering if there was any way to speed up FindRun upon hitting the pause/break key.  It seems to take a second or two, during which you cant type any search characters in.  Just wondering.... version 1.0.67.43.678.07.18 works great so far!

Kevin

edit: Actually the memory cache would be interesting... especially if it went away when FindRun was minimized.  Memory usage doesnt matter while FindRun is up and working.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Some Performance Questions and Suggestions
« Reply #3 on: October 03, 2005, 10:06 AM »
the delay on startup seems to be windows freeing most of the memory while the program is minimized..
thus it only happens after you haven't used the program in a while (try hitting break key 10 times in a row to toggle on and off and it should be fast).

i could probably make an option that tells F&R to not give up its memory when minimized, which would make it instantaneously startup when you hit break key, but which would make it use same amount of memory when displayed as when hidden.  should i add that?

kfitting

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 593
    • View Profile
    • Donate to Member
Re: Some Performance Questions and Suggestions
« Reply #4 on: October 03, 2005, 10:50 AM »
What's one more option? ;)  Heh heh, I'd be willing to give it a try if that's the cause of the slowdown.  FindRun takes 5 meg of memory while open on my machine.  I would however make the option well documented so people would not get all excited by this "low footprint" app taking up "so much" memory  (for people like me, in other words!).  But, I'd be willing to put up with some more memory usage.

Kevin

nontroppo

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 649
  • spinning top
    • View Profile
    • nontroppo.org
    • Donate to Member
Re: Some Performance Questions and Suggestions
« Reply #5 on: October 03, 2005, 11:06 AM »
I see memory cache as being different to the database, and you can add one without adding the other (though I do realise there is overlap as far as development goes). The advantage of memory cache is that it doesn't need any of the complex monitoring / updating, all it does is cache the names on first search and uses the memory version as the next letter gets typed. I don't notice windows does much cacheing at all...

+1 to an option to stop Windows flushing the memory; you can call it TURBO mode — every program should have one! ;)

BTW, when starting FARR, of those 3800 file operations, about 800 of them are FARR checking the skin folder, even if I am not using any skin:

17:01:44.444   FindAndRunRobot:2652   FSCTL_IS_VOLUME_MOUNTED   C:\Program Files\Farr\Skins   SUCCESS



FARR Wishes: Performance TweaksTask ControlAdaptive History
[url=http://opera.com/]
« Last Edit: October 03, 2005, 11:08 AM by nontroppo »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Some Performance Questions and Suggestions
« Reply #6 on: October 03, 2005, 11:08 AM »
i'll check the startup code and see what i see, maybe i'm doing something inefficient.

nontroppo

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 649
  • spinning top
    • View Profile
    • nontroppo.org
    • Donate to Member
Re: Some Performance Questions and Suggestions
« Reply #7 on: October 03, 2005, 12:06 PM »
The large number of startup requests ONLY occur when launch history is shown at start; though the constant skin directory checking occurs irrespective of that setting, or resize window.
FARR Wishes: Performance TweaksTask ControlAdaptive History
[url=http://opera.com/]

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Some Performance Questions and Suggestions
« Reply #8 on: October 03, 2005, 05:22 PM »
thanks for the clue, that will help me track it down.

nontroppo

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 649
  • spinning top
    • View Profile
    • nontroppo.org
    • Donate to Member
Re: Some Performance Questions and Suggestions
« Reply #9 on: October 04, 2005, 05:18 AM »
I've also noticed, that if I type in something only an alias group will match, FARR still keeps scanning through the folders on every key press, so with the email thing:

email john@te

There is nothing that matches apart from the email group, yet FARR keeps scanning all directories on every new keypress. Once only aliases are left in the list, I suggest you stop incremental search. The memory cache would also fix this.
FARR Wishes: Performance TweaksTask ControlAdaptive History
[url=http://opera.com/]

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Some Performance Questions and Suggestions
« Reply #10 on: October 04, 2005, 05:31 AM »
thats a good point..
when you match an alias name exactly it will stop searching, but when its not an exact match it keeps going..
i'm not sure how reliably i can have it figure out to stop, i'll think about it.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: Some Performance Questions and Suggestions
« Reply #11 on: October 04, 2005, 09:08 PM »
hi there,

just noticed this topic, i want to mention that once i had this problem where suddenly my pc slowed down to a crawl. and when i started process explorer, it reported that F&RR was using up the CPU cycle (if that is the term) so i killed F&RR. when i ran F&RR once again, everything was normal...

http://img72.imageshack.us/img72/7712/frmemhog3ml.png
Some Performance Questions and Suggestions

Free Image Hosting by ImageShack

maybe it was just coincidence... ;-)

best regards,
lanux

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Some Performance Questions and Suggestions
« Reply #12 on: October 04, 2005, 09:16 PM »
one thing that user fodder reported and i've confirmed is that if you have UNC shortcuts in your Recent Documents list (links to files on a remote computer via your lan), it can cause a stall in F&R as it tries to resolve the links; that will be fixed soon.

nontroppo

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 649
  • spinning top
    • View Profile
    • nontroppo.org
    • Donate to Member
Re: Some Performance Questions and Suggestions
« Reply #13 on: November 13, 2005, 11:36 AM »
Bug tracker links relating to this:

Stop scanning on start: https://www.donation...cking/view.php?id=77
Temporary File list cache: https://www.donation...cking/view.php?id=78
Stop Scanning on Alias match: https://www.donation...cking/view.php?id=79
FARR Wishes: Performance TweaksTask ControlAdaptive History
[url=http://opera.com/]

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Some Performance Questions and Suggestions
« Reply #14 on: November 13, 2005, 05:34 PM »
thanks nontroppo and those who are entering bugs and feature requests -
it really does make a big difference to be able to go see that list all in one place so clearly.

kfitting

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 593
    • View Profile
    • Donate to Member
Re: Some Performance Questions and Suggestions
« Reply #15 on: January 15, 2006, 02:04 PM »
Just wanted to resurface this discussion... I've been having problems with FARR lately while doing a lot of background tasks.  When I hit pause/break FARR takes forever to pop up (well, it's actually not 'forever!') and if I've started typing before it "initializes" some letters are typed in but not all.  Basically, I think it's the disk access slowing things up during another background disk access. 

Please take your time, I realize the other programs are getting their due attention right now.  I'm just bringing this up so it isnt forgotten and gets fixed in the next version!

Kevin


mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Some Performance Questions and Suggestions
« Reply #16 on: January 15, 2006, 02:57 PM »
thanks for being understanding.  as you know from past work on f+r i tend to work in bursts on different apps, focusing on one for a few weeks or a month and then switching over to another.  f+r stuff is still percolating in my mind and it'll get it's turn at bat soon :)

nontroppo

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 649
  • spinning top
    • View Profile
    • nontroppo.org
    • Donate to Member
Re: Some Performance Questions and Suggestions
« Reply #17 on: January 17, 2006, 09:47 AM »
Basically, I think it's the disk access slowing things up during another background disk access. 

Do try to turn off showing history on starting (link to bug 77), that has kept me able to continue using FARR on my older machine...
FARR Wishes: Performance TweaksTask ControlAdaptive History
[url=http://opera.com/]
« Last Edit: January 17, 2006, 09:53 AM by nontroppo »