[normalized Sound] A deep dive into dispatching techniques - Jonathan Müller - Meeting C++ 2022

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ส.ค. 2024

ความคิดเห็น • 6

  • @Roibarkan
    @Roibarkan ปีที่แล้ว +2

    Great talk!! I have a sense that the performance issue you saw for call-threading was “branch target” related (similar to what was noted for the laptop case) which was mitigated in the token-threading approach by the multiple branches that could be separately learned. Perhaps unrolling the loop in the call-threading approach could have helped. I also wonder if the compiler flag “-march=native” could have generated better (and different) switch-statement code for the different platforms

  • @sargijapunk
    @sargijapunk ปีที่แล้ว +2

    Great talk, but please talk at a slower pace, you are almost impossible to understand at times.

  • @Roibarkan
    @Roibarkan ปีที่แล้ว +2

    20:15 I suspect the goto statement in slide 43 should only have the label location, without “argument passing” in parentheses.

    • @foonathan
      @foonathan ปีที่แล้ว +1

      Yes, it should!

  • @Roibarkan
    @Roibarkan ปีที่แล้ว +1

    34:20 I wonder if the [[unlikely]] attribute could have made a difference here

    • @foonathan
      @foonathan ปีที่แล้ว +2

      It doesn't help in the case where you don't tail call the "slow part", the compiler doesn't extract that in a separate function for you. If you already applied the optimization, it can further help, yes.