HISE Logo Forum
    • Categories
    • Register
    • Login

    Post increment vs pre-increment

    Scheduled Pinned Locked Moved Scripting
    5 Posts 2 Posters 285 Views
    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.
    • d.healeyD
      d.healey
      last edited by

      @Christoph-Hart Do these have any performance differences in HISE Script? I did some tests with Console.start/stop and couldn't detect anything significant.

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      ustkU 1 Reply Last reply Reply Quote 0
      • ustkU
        ustk @d.healey
        last edited by

        @d-healey why do you think there's a performance discrepancy between the two?

        Hise made me an F5 dude, browser just suffers...

        d.healeyD 1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey @ustk
          last edited by

          @ustk Because there is in C++.

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          ustkU 2 Replies Last reply Reply Quote 0
          • ustkU
            ustk @d.healey
            last edited by

            @d-healey it can exist a slight difference in certain case scenario but in most case they are identical, at least following this explanation:
            https://isocpp.org/blog/2016/08/quick-q-efficiency-of-postincrement-v.s.-preincrement-in-cpp

            Hise made me an F5 dude, browser just suffers...

            1 Reply Last reply Reply Quote 1
            • ustkU
              ustk @d.healey
              last edited by ustk

              @d-healey Also, since Hise script is much slower than C++, I think (and here is only my opinion) that the slight difference if there is, is drowned into the funnels of the interpreter…

              Hise made me an F5 dude, browser just suffers...

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              25

              Online

              1.9k

              Users

              12.5k

              Topics

              108.7k

              Posts