Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. App startup time

App startup time

Scheduled Pinned Locked Moved The Lounge
questioncom
25 Posts 14 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D David Wengier

    Christian Graus wrote: Your splash screen should be written so it does not slow down load time The splash screen is purely static, just like the ones in Word etc. It just displays registration, version information etc. I was thinking that actually making it more complex, with an animation or something, might decrease the feeling of waiting. Christian Graus wrote: unless you can give meaningful options, your app should not start until it has the stuff loaded that it needs Part of the problem is that what is meaningful, depends on what you want to do with the software. The slow part is the file access, and sometimes, you need that, but other times you dont. I cant predict what the user wants to do today :) I was thinking of starting a new thread to go through the files, so that the program would load progressively. You could start using the program immediately, but if you wanted to use one of the files starting with Z, you might have to wait a bit. I guess the question is, which is better (perception wise, for the user), a 5 second wait where the software loads, or 5, 1 second waits, as it loads progressively. -- David Wengier Sonork ID: 100.14177 - Ch00k

    B Offline
    B Offline
    benjymous
    wrote on last edited by
    #16

    I'd put a progress bar on the splash window, and perhaps text next to the bar that tells you what the app is currently loading - that way it's totally obvious to the user that something is happening, and it means if the app should ever suffer from a bug that causes it to crash when starting, your users will be able to tell you roughly where it happened -- Help me! I'm turning into a grapefruit!

    1 Reply Last reply
    0
    • D David Wengier

      This could be the wrong forum, but who really knows in the global scheme of things. I am trying to get my app to load as fast as possible, and I have come across a philosophical question of sorts. I already have a splash screen, so the user knows that "something" is happening, but it is sitting there for what seems like a long period of time. Is it better to show the main app screen as quickly as possible, but with reduced functionality, or wait till everything is ready before allowing the user to use the software. In this case, there are two drop down lists that need to be populated, with data read from one file per list entry, and that is what is slowing it down. -- David Wengier Sonork ID: 100.14177 - Ch00k

      N Offline
      N Offline
      Neville Franks
      wrote on last edited by
      #17

      No one seems to have asked an obvious to me at least question, which is have you done any profiling? If you are lucky you may find that some simple tweaks here and there will speed things up no end. If not then multi-threading and/or load on demand is the way I'd go. Neville Franks, Author of ED for Windows. www.getsoft.com

      1 Reply Last reply
      0
      • D David Wengier

        Christian Graus wrote: Your splash screen should be written so it does not slow down load time The splash screen is purely static, just like the ones in Word etc. It just displays registration, version information etc. I was thinking that actually making it more complex, with an animation or something, might decrease the feeling of waiting. Christian Graus wrote: unless you can give meaningful options, your app should not start until it has the stuff loaded that it needs Part of the problem is that what is meaningful, depends on what you want to do with the software. The slow part is the file access, and sometimes, you need that, but other times you dont. I cant predict what the user wants to do today :) I was thinking of starting a new thread to go through the files, so that the program would load progressively. You could start using the program immediately, but if you wanted to use one of the files starting with Z, you might have to wait a bit. I guess the question is, which is better (perception wise, for the user), a 5 second wait where the software loads, or 5, 1 second waits, as it loads progressively. -- David Wengier Sonork ID: 100.14177 - Ch00k

        realJSOPR Offline
        realJSOPR Offline
        realJSOP
        wrote on last edited by
        #18

        Why don't you make the splash screen show a text progress bar that describes what it's doing (don't forget to give them an hourglass cursor dduring the process). "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 Please review the Legal Disclaimer in my bio.

        1 Reply Last reply
        0
        • D Daniel Turini

          IMHO, you should: 1. Disable the splash screen. It's annoying. 2. Show the main screen. 3. At the top of your main function, start another thread to load data for the combos. More important: 4. If there's so much data to load, there's something really weird about your UI. Selecting an item in a 30,000 items listbox is awful! Maybe a "search" button and a listview with only the data needed being displayed would make your UI instantaneous. Crivo Automated Credit Assessment

          D Offline
          D Offline
          David Wengier
          wrote on last edited by
          #19

          Daniel Turini wrote: At the top of your main function, start another thread to load data for the combos This is basically what I have done (for one of the combos). I have put a progress bar in the combo, written "Loading..." next to it, and put it in a thread. Works quite well, and the combo I have done it for is not a high priority thing, so doesnt matter if it takes a while. The other combo is the most important one. Daniel Turini wrote: If there's so much data to load, there's something really weird about your UI. Selecting an item in a 30,000 items listbox is awful! There are only about 250 entries, sometimes only 50, but it still takes a while. The problem is that each file needs to be opened and the first record extracted. It then is put into the combo and sorted as it goes. The next version of the software will expand that to 1400 items, and will be redesigned to add a search feature (and also work from a properly indexed database). At the moment, 50 share codes sorted alphabetically is not a problem. -- David Wengier Sonork ID: 100.14177 - Ch00k

          1 Reply Last reply
          0
          • C ColinDavies

            Jack Handy wrote: VC++ 6.0 opens in less than a second for me One second is a long time to wait. Regardz Colin J Davies

            Sonork ID 100.9197:Colin

            Free Colin Davies

            "real Americans don't criticize their leaders - because they don't want the terrorists to win." -- Quote from Chris Losinger a real American"

            J Offline
            J Offline
            Jack Handy
            wrote on last edited by
            #20

            ****Colin Davies wrote: One second is a long time to wait. Good thing it opens in less than a second for me ;) -Jack To an optimist the glass is half full. To a pessimist the glass is half empty. To a programmer the glass is twice as big as it needs to be.

            C 1 Reply Last reply
            0
            • J Jack Handy

              ****Colin Davies wrote: One second is a long time to wait. Good thing it opens in less than a second for me ;) -Jack To an optimist the glass is half full. To a pessimist the glass is half empty. To a programmer the glass is twice as big as it needs to be.

              C Offline
              C Offline
              ColinDavies
              wrote on last edited by
              #21

              Jack Handy wrote: Good thing it opens in less than a second for me Yes, One second is a long time to wait. Regardz Colin J Davies

              Sonork ID 100.9197:Colin

              Free Colin Davies

              "real Americans don't criticize their leaders - because they don't want the terrorists to win." -- Quote from Chris Losinger a real American"

              J 1 Reply Last reply
              0
              • C ColinDavies

                Jack Handy wrote: Good thing it opens in less than a second for me Yes, One second is a long time to wait. Regardz Colin J Davies

                Sonork ID 100.9197:Colin

                Free Colin Davies

                "real Americans don't criticize their leaders - because they don't want the terrorists to win." -- Quote from Chris Losinger a real American"

                J Offline
                J Offline
                Jack Handy
                wrote on last edited by
                #22

                ****Colin Davies wrote: Jack Handy wrote: Good thing it opens in less than a second for me Yes, One second is a long time to wait. Yes, but it opens in LESS than a second for me. -Jack To an optimist the glass is half full. To a pessimist the glass is half empty. To a programmer the glass is twice as big as it needs to be.

                C 1 Reply Last reply
                0
                • J Jack Handy

                  ****Colin Davies wrote: Jack Handy wrote: Good thing it opens in less than a second for me Yes, One second is a long time to wait. Yes, but it opens in LESS than a second for me. -Jack To an optimist the glass is half full. To a pessimist the glass is half empty. To a programmer the glass is twice as big as it needs to be.

                  C Offline
                  C Offline
                  ColinDavies
                  wrote on last edited by
                  #23

                  Jack Handy wrote: Yes, but it opens in LESS than a second for me. So, One second would be too long a time unit to wait. Regardz Colin J Davies

                  Sonork ID 100.9197:Colin

                  Free Colin Davies

                  "real Americans don't criticize their leaders - because they don't want the terrorists to win." -- Quote from Chris Losinger a real American"

                  J 1 Reply Last reply
                  0
                  • C ColinDavies

                    Jack Handy wrote: Yes, but it opens in LESS than a second for me. So, One second would be too long a time unit to wait. Regardz Colin J Davies

                    Sonork ID 100.9197:Colin

                    Free Colin Davies

                    "real Americans don't criticize their leaders - because they don't want the terrorists to win." -- Quote from Chris Losinger a real American"

                    J Offline
                    J Offline
                    Jack Handy
                    wrote on last edited by
                    #24

                    Ok, Now you're just screwing with me. -Jack To an optimist the glass is half full. To a pessimist the glass is half empty. To a programmer the glass is twice as big as it needs to be.

                    C 1 Reply Last reply
                    0
                    • J Jack Handy

                      Ok, Now you're just screwing with me. -Jack To an optimist the glass is half full. To a pessimist the glass is half empty. To a programmer the glass is twice as big as it needs to be.

                      C Offline
                      C Offline
                      ColinDavies
                      wrote on last edited by
                      #25

                      Jack Handy wrote: Ok, Now you're just screwing with me. Can we return to the topic, And maybe we can resolve a consensual decision on this. So far we have determined that your startup is less than one second, and I'm stating that one second is to long to wait. Regardz Colin J Davies

                      Sonork ID 100.9197:Colin

                      Free Colin Davies

                      "real Americans don't criticize their leaders - because they don't want the terrorists to win." -- Quote from Chris Losinger a real American"

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups