Want fast C++? Know your hardware! - Timur Doumler - Meeting C++ 2016

Поделиться
HTML-код
  • Опубликовано: 24 дек 2024

Комментарии • 17

  • @montyprogramador2774
    @montyprogramador2774 7 лет назад +5

    The link to the slides do not work.

  • @CodingJesus
    @CodingJesus 5 лет назад

    Why does Meeting C++ block the final summary slide with other video links? That's one of the most important slides.

    • @MeetingCPP
      @MeetingCPP  5 лет назад +1

      Moved it, thanks for the feedback.

  • @arielgawrys8814
    @arielgawrys8814 8 лет назад +1

    Do you recommend a book or website in this subject?

    • @haelium5718
      @haelium5718 8 лет назад +1

      If you want an intro I would say Structured Computer Organisation by Tannenbaum. Even the latest version is quite dated, but it will give you a basic understanding of what's going on, from there you can read blogs and find books on more specific details.

    • @frydac
      @frydac 8 лет назад +2

      one I enjoyed (but regrettably haven't been able to finish yet) is Computer Systems: A Programmer's Perspective (3rd edition 2015)

    • @handerpora
      @handerpora 8 лет назад +4

      "What every programmer should know about memory"

    • @arielgawrys8814
      @arielgawrys8814 8 лет назад

      Thanks for your response

  • @thought2007
    @thought2007 7 лет назад

    The man says "don't do microbenchmarks" and then proceeds to present results of many micro-benchmarks. Nonetheless interesting.

    • @petter9078
      @petter9078 7 лет назад

      Hmm, let me see if I understand this correctly! Different code snippets can have different bottlenecks... So one should do microbenchmarks discretely on code snippets to learn/optimize? Therefore, testing your entire program won't give you useful insight into what the actual problem is. It only gives you a somewhat vague number that tells its speed (?)
      Fantastic talk by the way! The whole hour felt like 1 minute :-)

    • @LaurentLaborde
      @LaurentLaborde 3 года назад

      and also the endless first tier of the talk that is all about cache locality :D

  • @MrAbrazildo
    @MrAbrazildo 7 лет назад

    Can tons of tiny f()s make a code slower? Well, I have a project with tons of that, and is currently as slow as $@#&#$%&$&!

  • @KiAb0n0V
    @KiAb0n0V 8 лет назад +6

    Great talk but after 200 th "Umm" I had to stop the video.

    • @sator666666
      @sator666666 8 лет назад +3

      So you might have missed very important stuff.

  • @sator666666
    @sator666666 8 лет назад

    *Row major traversal*
    int Tab[n][m]; //n-rows; m-columns; Tab[i][j] == Tab[i*n+j]
    for (int i=0; i < n; ++i) //row major order!
    for (int j=0; j < m; ++j) //then columns
    Tab[i][ j ] += j;

  • @garychap8384
    @garychap8384 7 лет назад +1

    Want fast C++? First, know the hardware... and then use C instead ; )
    C++ is evil. Almost as evil as covering the last two slides of a presentation with video thumbs XD

    • @seditt5146
      @seditt5146 5 лет назад +2

      Yeah... that evil structured, not spaghetti code with better performance then C in many many cases(this isn't the early 90s C++ is as fast or faster)... that evil stuff.