< Return to Video

CppCon 2014: Chandler Carruth "Efficiency with Algorithms, Performance with Data Structures"

  • Not Synced
    So Hi there, everyone.
  • Not Synced
    My name is Chandler Carruth.
  • Not Synced
    I work for Google
  • Not Synced
    I work on our C++ language platform
  • Not Synced
    I work on our C++ compilers
  • Not Synced
    specifically the Clang and ?
  • Not Synced
    And I'm here to talk to you a little about performance.
  • Not Synced
    and efficiency, and making code fast,
  • Not Synced
    and all the different things that go into that.
  • Not Synced
    But before I do too much
  • Not Synced
    I want to give actually give you guys a little bit of a
  • Not Synced
    one might say are expectations.
  • Not Synced
    Because I have been reading the twitter feed
  • Not Synced
    from all these folks, that talk about all these crazy good questions
  • Not Synced
    I just want you guys to essentially know this is my view
  • Not Synced
    of what Performance 101 should be.
  • Not Synced
    Okay? This is going to be kind of an intro talk.
  • Not Synced
    You guys are hard core, really deep performance nuts.
  • Not Synced
    You may be a little bit bored, and please be kind,
  • Not Synced
    because I'm going to gloss over some things
  • Not Synced
    you could go into thoroughly if you really want to
  • Not Synced
    We're going to talk about efficiency, performance,
  • Not Synced
    algorithms and data structures.
  • Not Synced
    And the first thing we are going to do is we're not going to talk about them.
  • Not Synced
    We're going to talk about why anyone cares about them.
  • Not Synced
    How many folks here think it's really important to have high performance in C++? Like certain that it's super important?
  • Not Synced
    Everyone thinks it's important!
  • Not Synced
    And the folks here have a really clear idea why performance is important.
  • Not Synced
    Now, all the people who didn't raise their hands the second time,
  • Not Synced
    Please reconsider raising your hand the first time.
  • Not Synced
    We actually need to understand why performance is important in C++,
  • Not Synced
    before we actually decide it's important, we're going to care a lot about it.
  • Not Synced
    I'm going to tell you why I care about performance in C++.
  • Not Synced
    Most of it comes down to a quote from Nicolas Werth.
  • Not Synced
    Which I will try to pronounce correctly but fail miserably.
  • Not Synced
    I actually really like a lot of our stuff,
  • Not Synced
    I think he really encapsulates a lot of my thoughts about the philosophy of software here.
  • Not Synced
    The software is getting slower more rapidly than (1:58)
  • Not Synced
    But that's what happened
  • Not Synced
    We now have to care about
  • Not Synced
    And we essentially
  • Not Synced
    You have to choose one
  • Not Synced
    We're going to choose small
  • Not Synced
    The other problem
  • Not Synced
    What do we do about the battery
  • Not Synced
    How many folks here have charged their phone today
  • Not Synced
    That's a problem.
  • Not Synced
    That's not a feature, that's a bug.
  • Not Synced
    How many
  • Not Synced
    We've entered
  • Not Synced
    Power became relevant
  • Not Synced
    Power efficient instructions
  • Not Synced
    Optimizing for power usage
  • Not Synced
    Because this is mostly total junk science.
  • Not Synced
    Here is the number one
  • Not Synced
    Finish running the program
  • Not Synced
    The faster your software runs, the lest
  • Not Synced
    If I run
  • Not Synced
    But it's not, okay?
  • Not Synced
    Here's the thing.
  • Not Synced
    We've only
  • Not Synced
    We figured out how to turn them off.
  • Not Synced
    if you have a
  • Not Synced
    the way it conserves power is by turning itself off
  • Not Synced
    The more
  • Not Synced
    So we actually want to make code faster
  • Not Synced
    There are some extreme exceptions to it
  • Not Synced
    But 99.999999% of the time
  • Not Synced
    But batteries aren't the only
  • Not Synced
    You'll note that
  • Not Synced
    The only thing it is doing is taking electricity and turning it into heat.
  • Not Synced
    That is it's job
  • Not Synced
    And unfortunately, electricity costs a lot of money
  • Not Synced
    And so power becomes very, very important
  • Not Synced
    And I find it interesting
Title:
CppCon 2014: Chandler Carruth "Efficiency with Algorithms, Performance with Data Structures"
Description:

more » « less
Video Language:
English
Team:
Captions Requested

English subtitles

Incomplete

Revisions Compare revisions