Are microbenchmarks any good?

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

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

  • @mathiasbynens
    @mathiasbynens 6 лет назад +13

    Re: 04:10 to clarify, Array.prototype.forEach doesn’t skip over explicit `undefined` values. It does skip over holes though.

    • @aerotwist
      @aerotwist  6 лет назад +2

      Pinning this because it makes the point so well.

    • @dassurma
      @dassurma 6 лет назад +3

      I meant holes, arghh

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

      @@dassurma clumsy language. hi hi

  • @Neo0rabie
    @Neo0rabie 6 лет назад +6

    Nice video, Earlier today I had a conversation with a co-worker about the most efficient way to generate a javascript Array with a length 10,000. We looked into new Array(10,000) and gave up quickly giving the quirks of using new Array, Now thinking about it some more it does sound like we were engaging in "microbenchmark"ing without noticing. Cheers on the timely video.
    Also Kudos to Surma for nailing that "outro"!

  • @Aisgiljjj
    @Aisgiljjj 6 лет назад +2

    According to my benchmarks, your videos make my day 300% better on average (tested on a mobile device)

  • @dennishein3640
    @dennishein3640 6 лет назад +9

    I love your intros / transitions! Have you worked in video production before or are you just naturally talented?

    • @aerotwist
      @aerotwist  6 лет назад +10

      That's very kind of you to say. No, no formal training, nor have I worked in this area before. I just do my best and hope it works out!

    • @dennishein3640
      @dennishein3640 6 лет назад +1

      @@aerotwist very impressive! Looking forward to the next one.

    • @redders6600
      @redders6600 6 лет назад +1

      +1 to this! Love the care taken to add that bit extra - really entertaining. Does it take you ages or are you getting pretty efficient with it now?

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

    Song is HDBeenDope - For The Record for those interested. Great video and chat!

  • @eyluismi168
    @eyluismi168 6 лет назад +2

    Love the style and quality of this video. And yeah the sound maybe is not studio level but the content is and I think this video is a big 9/10. Good work 🥳

    • @aerotwist
      @aerotwist  6 лет назад

      Thanks for the encouragement

  • @JasonDalton
    @JasonDalton 6 лет назад +3

    Readability is one of the biggest issues I see in development right now.

  • @KostasSarantopoulos
    @KostasSarantopoulos 6 лет назад +1

    First i like the video, then i watch!
    Very informative and I really appreciate the effort you put into your videos!

  • @ChrisPizzinato
    @ChrisPizzinato 6 лет назад +1

    Great talk! I know I've gone down that path in the past. Great take aways for new projects or refactoring old :)

  • @GifCoDigital
    @GifCoDigital 6 лет назад +1

    lol wish I saw this 6 months ago!! Definitely spent an entire day figuring out the most efficient way to process an array difference.

  • @mika2666
    @mika2666 6 лет назад

    background music for the ones looking for it: ruclips.net/video/OLuku1tK6ug/видео.html

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

    Audio is good enough Paul, I know that's not how you normally roll, striving for excellence, but if you hadn't have flagged it I, for one, wouldn't have given it a second thought.

  • @豪吴-c8w
    @豪吴-c8w 6 лет назад +1

    awesome content and the video production quality!

  • @fhdhsni
    @fhdhsni 6 лет назад +1

    Intro was awesome :) And thank you both

    • @aerotwist
      @aerotwist  6 лет назад +2

      The intro is my fave bit. Anything with B roll and I'm happy, honestly

  • @bibibobs
    @bibibobs 6 лет назад

    Surma nailed the outro 😂👌

    • @dassurma
      @dassurma 6 лет назад

      I learnt from the best ;)

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

    Wow incredible video edition !

  • @MichaelQuad
    @MichaelQuad 6 лет назад

    ye, okay, but what about automatic FLIP tech? it wont appear at web-studio level, it has to be engineered into library.

  • @unextro
    @unextro 6 лет назад

    I was able to find HDBeenDope - For The Record but not the specific remix you've used. :)

    • @aerotwist
      @aerotwist  6 лет назад +2

      Head to Epidemic Sound and check the ooyy remix ;)

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

    Great video. Totally agree with everything you both said. Nowadays I value explicitness more than cleverness and try to write JS that is easy to understand by humans.
    Not long ago I had a colleague who strongly believed that the fastest loop is `while` counting downwards. So every time we had to loop/iterate over a collection, we were expected to use `while`. And on top of that we had a style guide written again by him in which he specifically forbid us from using `forEach` on arrays (even small ones with just a few items) because `it was slow`. It was a heart breaking experience for me every time I had to iterate over an array because I couldn't use `forEach`.

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

      It can take a long time to unpick those decisions as well. Little by little we will get there tho :)

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

    Nice video, I learn a lot from your videos.
    Thank you.

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

    We need analyzers as part of the build step that will parse the code and optimize it for best perf.

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

      Unfortunately the implications of code can be non-obvious. I mean, yes you want to avoid document.write or other troublesome APIs, but more complex code will suffer from the Halting Problem.

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

    General rule: DOM's your Mom - the rest is fun and games
    Now-me is 100% onboard with this one :-)

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

    So in summary, forget IE, forget that's even been there in existence #goodpoint

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

      I'm not saying ignore it, you need to know your audience, but mostly only fix problems you know you have, and weigh it against other constraints.

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

      @@aerotwist ruclips.net/p/PL_IlIlrxhtPMqW4b0-v8OgLvFZQes6SoZ

  • @wobble_cat
    @wobble_cat 6 лет назад

    I think you can subtract noise frequency from the sound to make it clear. Audacity/Sound Forge have this option

    • @aerotwist
      @aerotwist  6 лет назад

      Tried it. And in Logic with no success :(

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

    Nice and useful!

  • @MaxArt2501
    @MaxArt2501 6 лет назад +2

    Why have the subtitles been generated _in Korean?!_ 🤔

    • @aerotwist
      @aerotwist  6 лет назад +1

      What?!

    • @MaxArt2501
      @MaxArt2501 6 лет назад +1

      @@aerotwist It's probably because of the rap song at the beginning that tricked RUclips language recognition 🤣

  • @CyberAcidPlanet
    @CyberAcidPlanet 6 лет назад

    iZotope RX would get that job done easily with audio restoration. Give it a try!

    • @aerotwist
      @aerotwist  6 лет назад

      For what it's worth I tried a few routes on the audio. I found that in all cases they made the audio worse by adding artifacts or muffling. I think it's the particulars of the audio noise profile that make it hard to isolate well.

  • @JoshuaVanAllen
    @JoshuaVanAllen 6 лет назад +1

    Past Surma, Past Paul, Past Josh are jerks :P

  • @subodhpareek18
    @subodhpareek18 6 лет назад

    What's your new camera setup?

    • @aerotwist
      @aerotwist  6 лет назад

      Still in flux. But a Canon 6D Mk 2

  • @MrGarfi
    @MrGarfi 6 лет назад

    Leave the optimisation to the engine - roger that :) Sound wasn't *that* bad, but yeah theres an excuse for you to get a new gadget.

    • @aerotwist
      @aerotwist  6 лет назад +1

      It is like you read my mind. Plus I have super high standards for myself. I'm unbearable.