HISE Logo Forum
    • Categories
    • Register
    • Login

    Post increment vs pre-increment

    Scheduled Pinned Locked Moved Scripting
    5 Posts 2 Posters 267 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?

        Can't help pressing F5 in the forum...

        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

            Can't help pressing F5 in the forum...

            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…

              Can't help pressing F5 in the forum...

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

              50

              Online

              1.7k

              Users

              11.7k

              Topics

              102.1k

              Posts