How to make TypeScript Blazingly Fast (JavaScript/NodeJS)

Поділитися
Вставка
  • Опубліковано 26 вер 2024
  • I have been doing some performance stuff at Netflix for some time. I wanted to take some time to share with you two very specific techniques for making your applications faster.
    One of the two steps is surprisingly beneficial.
    HERE IS HOW TO RUN THE PERF COMMANDS:
    GO TO THIS LINK: github.com/The...
    Links
    Linode: linode.com/prime
    Discord: / discord
    Twitch: / theprimeagen
    Insta: / theprimeagen
    Twitter: / theprimeagen
    VimRC & i3: github.com/The...
    Keyboard (15% off, I don't earn commission): bit.ly/primeag...
    #vim #nodejs #javascript

КОМЕНТАРІ • 490

  • @ThePrimeagen
    @ThePrimeagen  2 роки тому +174

    I hope you liked this video (literally, press the damn button already). If you like comparison videos / perf videos LET ME KNOW. TELL ME AND I'LL KEEP MAKING THINGS!!! Else I'll quit and make a vlog about my new protein drink line. ITS NOT A PYRAMID SCHEME... its a triangle.

    • @ryandiaz3806
      @ryandiaz3806 2 роки тому

      Yes keep going

    • @doremicocoparis9410
      @doremicocoparis9410 2 роки тому +3

      Love that contenttt , please do rust

    • @baaaaayesian
      @baaaaayesian 2 роки тому +1

      I like it

    • @gabboman92
      @gabboman92 2 роки тому

      Oh shit I forgot to add pooling to the database connection in my hobby project!

    • @gabimoncha
      @gabimoncha 2 роки тому +1

      Performance videos are the best!

  • @kezzu5849
    @kezzu5849 2 роки тому +407

    This is becoming one of my favourite programming UA-cam channels... Blazingly fast!

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +22

      Most excellent!

    • @pau1phi11ips
      @pau1phi11ips Рік тому

      @@ThePrimeagen I think you're my favourite programming channel now too. Only downside is you make me feel like dogshit when you roll out optimisation like this beast! 😁

  • @fedeanastasis7040
    @fedeanastasis7040 2 роки тому +148

    I really liked the graphs being included. Also i learned about flame graphs!

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +12

      Yeah. FlameGraphs are SUPER useful.

    • @discoline10191
      @discoline10191 2 роки тому

      Agreed, I’ll for sure be using flame graphs in the future

  • @ivar9125
    @ivar9125 2 роки тому +97

    Amazingly good combo of tempo, humour and insightful knowledge. Been professionally developing for about 15 years. Loved this video big time!

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +10

      Awesome! My goal is to make non slow tech videos :)

    • @adam-the-dev
      @adam-the-dev 2 роки тому +2

      @@ThePrimeagen that feels like an untapped market on UA-cam. Excited to see you pushing more of these out over time!

    • @JeyPeyy
      @JeyPeyy Рік тому

      @@ThePrimeagen You could say your tech videos are... BLAZINGLY FAST

  • @teej_dv
    @teej_dv 2 роки тому +43

    Oh Sheets, this guy is a data wizard

    • @scuffed_content
      @scuffed_content 2 роки тому +1

      🧙‍♂

    • @adgai
      @adgai 2 роки тому +1

      Prime is coming to steal jobs from data scientists LUL

    • @kingsleyoji649
      @kingsleyoji649 2 роки тому

      @@adgai prime?

  • @mirkosedda3196
    @mirkosedda3196 2 роки тому +5

    just strted a bootcamp 3months ago and had some prev exp so i can understand maybe 15% of your content but nonetheless im learning a new little fragment of concept in every video that hopefully i will be able to master later..your energy is an inspiration...lets all screaaam moreeeee goddaaaaamn

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +2

      YAYAYAYAYAYA! Keep your chin up, you got this babe!

  • @nellomoreira
    @nellomoreira 2 роки тому +3

    Dude, that was a BLAZINGLY good video.
    I love how you add some humor to this technical content.
    By the way, the content was excellent by itself. It's good to know the tools you use to analyze the performance and how you optimized the code!

  • @scottiedoesno
    @scottiedoesno 2 роки тому +5

    This blew my mind. Time to start monitoring the performance of my node server

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +1

      awesome! I thought the memory stuff was really surprising for me.

  • @bitcode_
    @bitcode_ 2 роки тому +19

    clicked the vid blazingly fast

  • @angeliliev7880
    @angeliliev7880 2 роки тому +2

    Can’t wait for the Rust vs go comparison

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      same! Almost done with the go server.

  • @zuzuz18
    @zuzuz18 2 роки тому +32

    The Primeagen: Bringing the science back to computer science since 1969

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      ua-cam.com/video/cbCu9sUzcXg/v-deo.html

  • @improlawl
    @improlawl 2 роки тому +3

    I’m in love with this channel, it’s amazing. Wish there were even more videos.

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +1

      Trying! Its hard to make good videos :)

  • @alanpbandeira
    @alanpbandeira 2 роки тому +2

    There's more science in this video than 90% of the academic papers that I had to read in my academic career, congrats man :)

  • @Und3adCat
    @Und3adCat 2 роки тому +19

    Awesome content as always.
    There is a lot to learn from the way you approach optimization (I mean who doesn't want a bigger blue bar?), as without numbers you are just blind in the mist.
    Flame graphs are awesome!

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +3

      yayaya! Always start with a proper yard stick.

  • @paulmurray3244
    @paulmurray3244 2 роки тому +1

    I just can’t believe how you manage this! Eng gig at Netflix, an ever increasing family size, what, is it now, 5 or 6 kids(?), live streams on twitch and then these buttery smooth, MCT oil’y goodness on the UA-cams! Keep up the great work!

  • @N0thingFR89
    @N0thingFR89 2 роки тому +2

    I like the eloquence of your videos, I appreciate you, you give me inspiration to make better code Blazingly fast!

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      BLAZINGLY FAST!
      Thank you for the nice words.

  • @shift-happens
    @shift-happens Рік тому

    It has become rare, that YT videos really make me lol, but man, you definitely still got the power to make me giggle. Top notch blazingly fast sub!

  • @relax4o
    @relax4o 2 роки тому +3

    Great video man. I really enjoy your content and always wait for a new video. Optimisations and comparisons are always interesting to watch. Keep up the good work.

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      awesome! Hopefully you feel like you had a couple of action items to take away if you ever work in node.

    • @relax4o
      @relax4o 2 роки тому

      The great thing about your videos is that the things you show can be applied anywhere with any language which is awesome.
      Also because you are ThePrimeagen I have to mention… I started using Neovim because of you. I wish I get as comfortable as you are someday.

  • @abauchu
    @abauchu Рік тому

    I love optimization videos and it's really cool to see your process and tools to solve a slow implementation problem. Keep them videos coming!

  • @rupert6999
    @rupert6999 Рік тому

    Big ups for sharing/exposing us viewers to this visualization tool for identifying performance bottlenecks….so clutch!

  • @chucknorris8351
    @chucknorris8351 2 роки тому +2

    Thumbs up 👍
    I sadly missed this stream, caught the tail end of it as you were building the graphs. This content is amazingly blazingly fastacular. I got a little randy when you described the use case for the memory pool and then saw the improvements with it… best programming content on the web for people who actually have to build stuff.

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +1

      Hah! Now it's a bit dangerous doing pools. They are hard to use properly

    • @chucknorris8351
      @chucknorris8351 2 роки тому

      @@ThePrimeagen But what if it's a pool of coconut oil?

  • @josephakayesi6951
    @josephakayesi6951 Рік тому

    Love the content! Your DSA course on Frontend Masters is one of the best contents I have ever watched. It really lives up to the expectation. Nothing has got me nearly excited about DSA as much as that course. Thank you very much. Love from Ghana! :)

  • @HendekaXI
    @HendekaXI 2 роки тому +3

    Love the video! The mix of informative and funny is well balanced and I learned something out of it.

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      awesome! Did memory part surprise you?

  • @jsjoeio
    @jsjoeio 2 роки тому +3

    Wow! Not gonna lie the memory pool stuff felt over my head a bit but hey, this is good stuff Prime. More comparison/perf stuff plz.

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +1

      JSJOEIO!!! What??!!! Memory pools are the bestest!

    • @jsjoeio
      @jsjoeio 2 роки тому

      @@ThePrimeagen lol guess i've never had a reason to use em'??? but with those performance gains, might be worth learning

  • @ShakthiMonkey
    @ShakthiMonkey 2 роки тому +1

    need this TYRONE content streamed directly into my brain

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +1

      get ws, a blazingly fast library.

  • @alexandersemionov5790
    @alexandersemionov5790 2 роки тому

    Rewatching this after SOLIDjs dev hour is even more satisfying. Thanks for reminding

  • @picosdrivethru
    @picosdrivethru 2 роки тому

    LOVE THIS! Awesome video, I loved how you went over the ring buffer, always nice to see some cs theory in the mix

  • @gavincoulson3900
    @gavincoulson3900 2 роки тому +1

    This is such a great video! Got introduced to this channel at work!

  • @ferdinandsteenkamp1333
    @ferdinandsteenkamp1333 2 роки тому +7

    Would love to see similar benchmarks and profiling in Go 🙏

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +6

      I am going to try to do some great go content.
      That is next. Next will be a rust vs go.

  • @franciscomerdot
    @franciscomerdot 2 роки тому +1

    This was refreshing, the information been shared in this channel is on point!

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      Yayayayaya! Ty. Just trying to cut through the yt bs

  • @thev01d85
    @thev01d85 Рік тому

    I LOVE seeing these perf videos, just subbed :D
    Keep them coming!

  • @woofiewill
    @woofiewill 2 роки тому +4

    Great video. Loved how you told the story of the whole optimization process illustrated with your graphs. Showing us how to apply these tools along the way. And getting great results by applying some good fundamentals in algorithms and memory management.
    While I do like the overall tempo of the video, I find that getting too many shortly spaced cuts in your speech when you're explaining something more complicated can be a bit jarring and interfere with fully comprehending the content.

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +1

      Solid feedback. I'll consider that moving forward.

    • @tejasahluwalia8713
      @tejasahluwalia8713 2 роки тому +2

      @@ThePrimeagen I think this is a personal preference. I like the cuts, makes it more compact and keep my attention.

  • @MBrunoS
    @MBrunoS Рік тому

    Great content! Somehow I really like JS things, and these kind of content is awesome. This is becoming my fav tech channel

  • @writegoodcode
    @writegoodcode Рік тому

    had seen this video around 6 month's before, did'nt understand shit. It was recommended again in my feed today, and i tottally understand everytying. feel's so damn good!

  • @dalekman8945
    @dalekman8945 2 роки тому +3

    Does the primagen edit his own videos? Cause the editing is sharp and hilarious

    • @flipmedia1597
      @flipmedia1597 2 роки тому +3

      I’m the editor:) Thank you I appreciate that!

    • @dalekman8945
      @dalekman8945 2 роки тому +1

      @@flipmedia1597 Right on! The editing is hilarious! Great stuff 🙏

    • @Martinit0
      @Martinit0 Рік тому

      @@flipmedia1597 The editing is next level. It's as tight as hand-written assembler code.

  • @ordep1132
    @ordep1132 2 роки тому +30

    Unbeatable content, congrats!
    How long did it take you to get this done? How did you measure the avg health of your loops and generated those charts?

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +24

      To make the example took ~30-40 hours of programming
      To collect that data took about 10 hours of different experiments
      To measure the health: github.com/ThePrimeagen/tyrone-biggums/blob/master/typescript/src/game_loop/game-callback.ts#L22
      That collects the stats then whoever is the winner of the stats will send down how many currently active games were being played + the 8 points of data representing the count in each bin. Used a simple script to post process all the data transfered.

  • @aus10d
    @aus10d Рік тому

    thanks for covering the flame graph stuff. that was really interesting to learn about

  • @RimantasBelovas
    @RimantasBelovas 2 роки тому +16

    I would like to invite Prime to make a lecture for my students... problem - we use VSC 😬😅❤🤗 still - I love Primeagen 🎅

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +5

      hahah! that is ok. Students have to start somewhere.

    • @cas818028
      @cas818028 2 роки тому

      Vscode is the only way, vim is for pure savages

  • @datacruncher1564
    @datacruncher1564 2 роки тому +1

    I liked that I got to know how to improve performance of typescript programs. I would also like to know about a complete suite of tools, where database calls from typescript can also be viewed on a graph.

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +2

      Yeah, more is awesome. A lot of these tools you speak of are pay to play

  • @EddyVinck
    @EddyVinck 2 роки тому +6

    12 minutes? That is not blazingly fast at all
    Just finished the video, and it was really interesting! Great job

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +1

      I do love you, don't mind my twitter presence... he is a jerk.

  • @lala123nne
    @lala123nne 2 роки тому +3

    really like the case study, really easy to follow. I would really like to see some C++ experiment from you, maybe in comparison with Rust?

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +4

      I'll be doing go vs rust. c++ is just soooooo much effort. I'll spend like 15 hours just getting the proper build system

    • @lala123nne
      @lala123nne 2 роки тому +1

      @@ThePrimeagen Yeah, I completely understand the problem with C++ for these "side-experiments". Go vs Rust sounds awesome!

  • @enriquekesslermartinez724
    @enriquekesslermartinez724 2 роки тому +1

    Great video prime! Keep it up, love the graphs

  • @henriqueoliveira2819
    @henriqueoliveira2819 Рік тому

    Entertaining, fun and full of new techniques to learn! *_BLAZINGLY FAST_* channel!!!!

  • @dynamite-bud
    @dynamite-bud 2 роки тому +1

    man that was really informative video
    ♥♥♥

  • @mvargasmoran
    @mvargasmoran 2 роки тому +2

    Boy oh boi! that was Blazingly FAST!
    🏃‍♂️⚡️⚡️

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      thank you marcos :) See you on twitch.

  • @jovane.tech-io
    @jovane.tech-io 2 роки тому

    Love seeing those graphs 😍😍😍

  • @davidkezi6086
    @davidkezi6086 2 роки тому +1

    Absolutely loved this video. Thank you.

  • @MrLowbob
    @MrLowbob Рік тому

    never seen flamegraphs but they seem to be a nice thing! thanks for showing those to us

  • @hoxorious
    @hoxorious 2 роки тому +1

    I liked this video very much and I learned a lot. Keep up the good work! ❤💪

  • @Martinit0
    @Martinit0 Рік тому

    This is great content!
    Currently my code is mostly slowed down by the slow rendering engine, so I was on a mission to simplify the HTML. Removing layers of containers (DIVs), replacing some with simple padding/margin.
    Probably going to look at object creation next.

  • @chasehayes3536
    @chasehayes3536 2 роки тому

    Such an interesting video, love the heavy use of data to prove your changes actually made a difference. Would love to see this kind of stuff compared with Rust and it’s non-garbage collected memory management.

  • @luiscarloscorderopena7030
    @luiscarloscorderopena7030 2 роки тому +1

    Amazing content as always! I would like to see this comparisons vs unoptimized Go server

  • @jungervin8765
    @jungervin8765 2 роки тому +1

    I would be interested in more in-depth js optimization videos, nice job!

  • @zaneflow
    @zaneflow 3 місяці тому

    woo just learnt about flame graphs, really cool!

  • @SoumikPradhan
    @SoumikPradhan 2 роки тому +1

    Super insightful. Heading on to twitch now. Also, I hope this comment helps you plot those sweet perf improvement graphs.

  • @doby3288
    @doby3288 Рік тому

    I would really like to see some more in-detail optimization tutorials about tools and how to use them for JavaScript/TypeScript. 😊

  • @sebsplatter914
    @sebsplatter914 Рік тому

    Ahyo, just discovered this channel and I'm VERY interested in this optimization stuff, specifically for TS, but also with regards to the "how do you actually measure stuff". Explaining perf some more would be amazing. I cant really join twitch because of timezones, but if some of that made it to your yt-channel, I would be very happy!

  • @PaulBurlumi
    @PaulBurlumi 2 роки тому +1

    Good job!
    I personally would like to see a similar comparison with Go.

  • @samrad9598
    @samrad9598 2 роки тому +1

    looking forward to the RxJS part

  • @cotneit
    @cotneit 2 роки тому +1

    This is now my fav programming channel
    Also everything for some reason became blazingly fast
    Even my anxiety
    Help

  • @grim.reaper
    @grim.reaper 2 роки тому +3

    It would be great to delve deeper into flame graphs 🔥

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +1

      !!! You never know! I want to play around with the go performance tooling.

    • @grim.reaper
      @grim.reaper 2 роки тому

      @@ThePrimeagen i would highly recommend that if you have some time to spare!!

  • @ekekw930
    @ekekw930 2 роки тому +2

    GIVE RUST AND GO GRAPHS!! Also would love you join your protein drink line triangle.

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +1

      Excellent! You will get paid based on how much you sell and how many more triangles you can get under you.

  • @alexandersemionov5790
    @alexandersemionov5790 2 роки тому +2

    me likes it, me likes it a lot. Please do a Go and Rust comparisons!!! Now putting myself into await pool for that

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      yayayayayayaya! Just don't forget to bring your Tokio Mutex if you are awaiting into the pool.

  • @garyhe5482
    @garyhe5482 2 роки тому

    Awesome!!!!, I really enjoy watching this!!!!!

  • @NLJuzzzNL
    @NLJuzzzNL 2 роки тому +1

    Just a comment to increase the comment amount graph. Your content is golden!

  • @samuvisser
    @samuvisser Рік тому

    I saw those flame graphs when profiling my app, but didnt really know how to read em 😂 Happy i do now

  • @zakariamofaddel
    @zakariamofaddel 2 роки тому +1

    This is gold content. I love it!
    I Usually do not comment, but I wanted to help you satisfy your graphs fetish.

  • @cisar2218
    @cisar2218 2 роки тому

    I am amazed. Incredible content!

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +1

      you are welcome!
      I am glad you liked it.

  • @thehibbi
    @thehibbi 2 роки тому +2

    Just letting you know: I like this content

  • @bharathg8072
    @bharathg8072 2 роки тому +2

    I WANT MORE OF THE PRIMEAGEN!!!!!

  • @markvaldez8602
    @markvaldez8602 2 роки тому +1

    this is awesome! I hope to quit writing CSS and start writing flame graphs one day.

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      One day, in the not so distant future?

  • @earthling_parth
    @earthling_parth 2 роки тому

    We LOVE tthese blazingly fast videos ♥️

  • @adam-the-dev
    @adam-the-dev 2 роки тому +8

    I’m really glad to see you comparing TS with Rust and Go. And in such a digestible format. Quick, understandable, and funny!
    I feel like the Rust and Go discussions ignore the fact that the majority of the job market for web is using JS/TS. And JS/TS developers ignore the hit to performance and server costs. Rust is incredible until you actually try to build something real. Go seems nice but falls short in it’s promise for simplicity, and has made some strange decisions.
    Great video!

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +5

      I find go to be great. It gets better and better as you understand some of its decisions. I am fine with almost all of it
      Rust on the other hand. It is hard, but I am getting faster working through a lot of rusts weirdnesses as well. Each I can appreciate.
      At this point I am unsure if I am faster at JS or Rust for a lot of things.

  • @AustinMarlar
    @AustinMarlar 2 роки тому +1

    Wanting this series to keep going…

  • @BinaryReader
    @BinaryReader 2 роки тому +5

    Cool video dude. Yeah, JavaScript performance is strongly coupled to explicit memory management. As a general rule, avoid 'new' in hot code paths (allocate as much memory as you can up front and reuse). JavaScript
    also suffers from not being able to allocate structures on the stack (so all objects go on the heap + implicates the GC), in some extreme optimization cases, it may be nessasary to inline object properties to flat primitive values that do sit on the stack. There's an art form to making JS go fast, pity about the shit Web Socket libraries available for Node. You should performance benchmark Deno native Web Sockets vs Nodes ws library.

    • @ebrelus7687
      @ebrelus7687 Рік тому

      How about bun? Where could I read about keeping js stack leaner? Thanks for the tips you gave.

    • @BinaryReader
      @BinaryReader Рік тому +1

      @@ebrelus7687 At this stage, the only way to keep JS lean is by writing code yourself and avoiding NPM dependencies (and then refining your code over years). Basically, you want to be writing directly against the core modules provided by the platform only (and only take dependencies if you absolutely have to)
      As for Bun, best to wait. However I'm skeptical that Bun will see significant performance increases over Node/Deno in practical use cases. The only thing Bun is doing that the other platforms are not (afaik) is implementing the sendfile API (which allows it to do zero copy of buffers and avoids kernel space to user space copies). Systems like Kafka use this API for performance, but it's fairly niche in terms of the places it can be applied.
      Id stick with Node/Deno for the foreseeable future.

  • @Zyphire
    @Zyphire 2 роки тому +1

    Wow!! That's blazing fast 😮

  • @regexPattern
    @regexPattern 2 роки тому +1

    The guy who screams in the video is literally my definition of pro. Wanna be like that guy one day.

  • @mvargasmoran
    @mvargasmoran 2 роки тому +1

    That red line at 11:09 was smoother than my linear Thocky Switches ❤

  • @jesseleite
    @jesseleite 2 роки тому +1

    Reusing bullets... Sounds even more violent.

  • @saramshshrestha7641
    @saramshshrestha7641 2 роки тому +2

    Loved it.

  • @ryandiaz3806
    @ryandiaz3806 2 роки тому

    This is amazing stuff I can watch this all day

    • @ryandiaz3806
      @ryandiaz3806 2 роки тому

      Multi-threaded JS, native add ons, data driven eng initiatives. These 👌

  • @omzdash7362
    @omzdash7362 2 роки тому +1

    This video does not make any sense to me, but I like it and I will watch it again.

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      Why not? Are you new or am I bad at explaining?

    • @omzdash7362
      @omzdash7362 2 роки тому

      @@ThePrimeagen Wathed the video again, Awesome. Thanks for introducing flame graph, node --inspect and how to use pool and ring buffer. And you got it, I'm pretty new :)

  • @grim.reaper
    @grim.reaper 2 роки тому +1

    This is great 😍

  • @Sgene9
    @Sgene9 2 роки тому +2

    This is cool!

  • @jandresfg
    @jandresfg 2 роки тому

    1st watch: wait what
    2nd watch: oh, so the game is this loop, and it advances time, and bullets kill bc of fire rates, and increased load makes the loop fluke (wait how did he measure load)
    3rd watch: wtf is a "linode instance". Ok so you do a flamegraph of the backend, Identify which ring is actually your code and figure out how to optimize. And you can do the same to measure memory consumption in chrome debugger and optimize in that regard, up to the point of barely gross.
    yeah amazing video, really loved learning about this technique

  • @darkarie
    @darkarie 2 роки тому +2

    I want, in a degenerate way, a video with the rust comparison 😫

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      will do! If you are on twitch you will see that I am getting close.

  • @RasmusSchultz
    @RasmusSchultz 2 роки тому +3

    Possibly explanation for why the memory optimizations made things faster: it may have actually made things slower overall - but the program is going to run with fewer or shorter interruptions by the garbage collector, which is probably why the blue bar goes up. 🙂

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +1

      that is my general consensus. An "easy" to validate this theory would be to make this server run in the browser (i already have sockets sort of abstracted away as is) and build a simple socket impl to feed in fire commands. From this i will be able to use the performance tab in chrome debugger. I could export the data to json and sum up time spent in GC.
      Also, apparently in node i can pass v8 flags to the engine and get tracing for free, but I don't know how to do that :)

  • @micmine
    @micmine 2 роки тому +1

    Thanks i am exited for rust.

  • @shivanshmishra5293
    @shivanshmishra5293 2 роки тому +2

    That was smooth gonna build something similar in kotlin don't hate me for using jvm :)

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      hah! I have always been curious about kotlin.

  • @raulmatiasgallardo
    @raulmatiasgallardo 2 роки тому

    nice video prime!! Love to see this in rust.

  • @lautarotejerina6485
    @lautarotejerina6485 2 роки тому

    I like perf videos, especially comparison.

  • @0mni924
    @0mni924 2 роки тому +1

    The doc of programming

  • @samirxtz250
    @samirxtz250 2 роки тому +1

    I love graph.
    I really love all videos. :D
    I would like a video that you installed your dotfiles from zero or a video about arch linux (is that your OS?)
    If I miss some english grammar, hope you can forgive me blazingly fast

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +1

      i definitely do not use arch. I have kids which has been disallowed by the international linux committee to use Arch Linux.

  • @mattzeepk2993
    @mattzeepk2993 2 роки тому

    I love this kind of content

  • @benjinguyen9965
    @benjinguyen9965 2 роки тому +3

    95% of all other youtube programming channels that I used to follow became soydev tier after I discovered this channel. Awesome shit man, and thank you for teaching me about flame graphs! #bLaZinGlyFaSt

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +2

      Yayayaya! One of my first goals of the channel is to stop beating around the bush. GET TO THE CONTENT. #BlAzInGlYfAsTsOyDeV

  • @swastikacharyya
    @swastikacharyya 2 роки тому +1

    Coconut oily video as every time 🌝❤️ but can we blessed with the prime knowledge how to generate those frame-graphs ?

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому +1

      look at the description. There is a link. It links to the repo where I have the exact steps I used to run the flamegraphs.

    • @swastikacharyya
      @swastikacharyya 2 роки тому

      @@ThePrimeagen thanks prime 🌝

  • @iurypiva8371
    @iurypiva8371 2 роки тому

    I've never turned a notification bell on before =O

  • @quachhengtony7651
    @quachhengtony7651 2 роки тому +1

    I identify as a blazingly fast apache helicopter

  • @im-a-trailblazer
    @im-a-trailblazer Рік тому

    This is like really really really interesting, i want your knowledge

  • @mahdiaghaei8154
    @mahdiaghaei8154 2 роки тому +1

    Yes we love this content, we love to learn how to make our apps go brrrrrrr

    • @ThePrimeagen
      @ThePrimeagen  2 роки тому

      awesome! Hopefully that sweet little data structure I threw in the mix was great :)