Announcement

Collapse
No announcement yet.

why this code runs faster ???

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    All I'm going to say before I leave, is that there are more arbitrary numbers again... Also, don't forget that Lua is an interpreted language with an engine (Lua5.1.dll ) compiled in C or CPP. Machine-code compiled products will always run faster, if the same code is implied.

    CUDA is awesome, but only exists on systems which support it. People without a nice graphical card or some bad-a$$ API will not be able to use it.
    Bas Groothedde
    Imagine Programming :: Blog

    AMS8 Plugins
    IMXLH Compiler

    Comment


    • #32
      I know that.

      Comment


      • #33
        btw, why is it "bad" to use the built in text actions to write a log file? It does the same like lua? (maybe a bit slower?)
        Bl4ckSh33p-Soft - Custom Software and Indie Games

        Comment


        • #34
          Originally posted by Bl4ckSh33p View Post
          btw, why is it "bad" to use the built in text actions to write a log file? It does the same like lua? (maybe a bit slower?)
          That's the bad part, it's a bit slower (quite more than a bit slower if you log a lot). If you need to log thousands of entries, you'll really notice the speed drop. With the native Lua functions you can open the file and write to the file through the handle, it remains opened until you close it. TextFile.WriteFromString however reopens the file on each call.
          Bas Groothedde
          Imagine Programming :: Blog

          AMS8 Plugins
          IMXLH Compiler

          Comment


          • #35
            Thank You Men
            Honestly
            Great Thanks For IR Stuff And Moderators

            I Feel So Glade To Be Here

            Comment


            • #36
              Ok, thanks. My "big" logs were only about 50-100 lines so far. But I will take a look at the lua manual if I need bigger logs.
              Bl4ckSh33p-Soft - Custom Software and Indie Games

              Comment

              Working...
              X