Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#334 Startup should be Current_User\...\Run vs. Programs\Startup

Version_0.4.x
open
Neil Marko
5
2012-10-09
2003-08-01
No

Problem:
Currently if you elect to have YahooPops start with
windows YahooPops adds a shortcut to the user's start
menu. This is an extremely slow way of loading at
startup. Please move YahooPops execution to the
Current Users's "...\Run" Registry key:
HKEY_Current_User\Software\Microsoft\Windows\CurrentVersion\Run

Thanks,
Christian Blackburn

Discussion

  • Anuj Seth
    Anuj Seth
    2003-08-03

    Logged In: YES
    user_id=157315

    Why should this be a "slow" way? It will still load the
    YahooPOPs! executable at startup and the time taken for
    YahooPOPs! to load up remains the same.

    Please do clarify.

     
  • Logged In: YES
    user_id=561770

    Hi Anuj,
    The reason it's slower is that it takes longer to process a
    shortcut in the start menu vs. a key in the registry.
    Cheers,
    Christian

     
  • Keilaron
    Keilaron
    2004-05-26

    Logged In: YES
    user_id=1049905

    Please do not change this, it is not a required change.
    Additionally, items in the start menu can be skipped at start-up by holding down SHIFT. Programs in the registry are not skipped in this fashion.

    I prefer to have optional programs in the start menu so that I can hold SHIFT down for a quick boot whenever I'm only using the computer for a few quick things.

     
  • Don Beusee
    Don Beusee
    2005-02-25

    Logged In: YES
    user_id=815616

    Neil, here is another issue to look into as you add the capability
    to make ypops a service. Christian is wrong about startup speed
    (will not make a difference), but keilaron would like the option to
    keep it in the startup folder - giving a reasonable reason. Pls
    consider...

     
  • Logged In: YES
    user_id=561770

    Hi keilaron,
    I do not take issue at all with a user's preference to be
    able to disable their startup tasks by holding down shift.
    Why not make the run key an installation option?

    dbeusee,
    As for the registry startup location not having any effect
    on performance you couldn't be more wrong. About a year and
    a half ago I read a list of tips from Microsoft on MSDN on
    how to speed up hardware complementing software (like
    keyboard hotkey trap apps and the like) and one of the
    recommendations for enhancing peformance was indeed using
    the registry's Run key. Open up a .lnk and then a registry
    file and I think you'll figure out why real fast. Adobe
    Acrobat Reader's startup shortcut is 29,696 bytes vs. a
    file that's going to be processed anyways. The number of
    bytes for Acrobat in the registry is less than or equal to
    198 bytes. The registry's run keys have to be processed
    anyways. Windows has already located the registry in the
    user's FAT (File allocation table) and is already processing
    the keys. Every starutp item in the user's startup group
    requires another lookup in the user's FAT table, then the HD
    head has to move to that location, and then a much larger,
    file must be parsed. Sure a shortcut allows more startup
    options, but that comes with a considerable peformance
    penalty. In the future please don't make blanket statements
    like
    that without knowing beyond a shadow of a doubt that you are
    correct.

    Cheers,
    Christian Blackburn

     
  • Don Beusee
    Don Beusee
    2005-02-25

    Logged In: YES
    user_id=815616

    Adobe Acrobat Reader's startup shortcut is 29,696 bytes

    We are not talking about acrobat reader's shortcut, are we?
    BTW, the 6.0 shortcut is only 2,229 bytes on my system.
    ypops.lnk is only 1,484 bytes.

    Sure a shortcut allows more startup options, but that comes with
    a considerable peformance penalty. In the future please don't
    make blanket statements like that without knowing beyond a
    shadow of a doubt that you are correct.

    Just how much of a delay are we talking about? A few
    milliseconds? You don't know the exact overhead involved in
    accessing the registry either. I think you are also making a
    blanket statement without knowning beyond a shadow of a
    doubt. And anyway, I think you are drastically overestimating
    the speed difference. Trust me, the user isn't going to notice
    one way or the other. The difference is in milliseconds, not
    seconds, and at best, is a drop in the ocean compared to all the
    other stuff that's going on.

    In any case, all this is moot, because in 0.8, we are planning to
    make ypops a system-wide service, not something each user
    has to start up, so in all likelyhood, it will not be a shortcut at all.
    It will probably be a HKEY_LOCAL_MACHINE run key
    (win9x/me) and service in winnt/2k/xp.