sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    File access speed

    Scheduled Pinned Locked Moved Developers' Forum
    9 Posts 3 Posters 376 Views 3 Watching
    Loading More Posts
    • 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.
    • honoluludesktopH Offline
      honoluludesktop
      last edited by

      In order copy a physical file to a ram file I opened the physical file and pushed each line into the ram file, then on subsequent accesses, used the ram file. While I didn't take my stop watch out, there seemed to be little if any, improvement in speed. Is the primary benefit to using a ram file, the safety of the physical file?

      It seems that the 10,000 loop through the database is slower then the first. Why? Can I do anything about ir?

      I also notice that when debugging, if I puts to display enough, my system hangs (stack overflow perhaps?), especially when I switch to another application.

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        Seems to me these days that most HardDrives have an integrated read-write (RAM) buffer on-board, that is enabled by default. So I'd think you may not notice a difference unless you disable the drive's buffer.

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • honoluludesktopH Offline
          honoluludesktop
          last edited by

          Thanks, Dan, That make sense.

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jim
            last edited by

            @honoluludesktop said:

            I also notice that when debugging, if I puts to display enough, my system hangs (stack overflow perhaps?), especially when I switch to another application.

            If you're generating a lot of debug lines, better to write them to a file instead of the Ruby Console.

            Hi

            1 Reply Last reply Reply Quote 0
            • honoluludesktopH Offline
              honoluludesktop
              last edited by

              In the old days that was easy "my_application my_parameters > temp.dat". OK, guess the way to do that is to code it as part of my_script.

              1 Reply Last reply Reply Quote 0
              • J Offline
                Jim
                last edited by

                You can do that also.

                Hi

                1 Reply Last reply Reply Quote 0
                • honoluludesktopH Offline
                  honoluludesktop
                  last edited by

                  I can "my_application my_parameters > temp.dat"? How? Not with the command window?

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    Jim
                    last edited by

                    Yes, using a command window:

                    Sketchup.exe > log.txt

                    If working in another directory, you need the full path to sketchup.exe:

                    "C:\Program Files\Google\Google SketchUp 8\Sketchup.exe" > log.txt

                    This works as long as the Ruby Console stays closed. When it is open, output will go there instead of the to the file.

                    Hi

                    1 Reply Last reply Reply Quote 0
                    • honoluludesktopH Offline
                      honoluludesktop
                      last edited by

                      All this time I labored under the belief that only old programs up to Win98 ran in the command window, and didn't ever try.

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      Buy SketchPlus
                      Buy SUbD
                      Buy WrapR
                      Buy eBook
                      Buy Modelur
                      Buy Vertex Tools
                      Buy SketchCuisine
                      Buy FormFonts

                      Advertisement