Is your memory leaking?

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

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

  • @DeepankarSandhibigraha
    @DeepankarSandhibigraha 3 года назад +1839

    "Now it's upto you to fix it" the wisest and the most useless advice at the same time

    • @RodrigoSalesSilva
      @RodrigoSalesSilva 3 года назад +133

      "if it keeps going up up and up it means you fucked up, fix it" lol

    • @juniordev4190
      @juniordev4190 3 года назад +1

      @@RodrigoSalesSilva 😂😂

    • @SirusStarTV
      @SirusStarTV 3 года назад +2

      Just stop the leakage duh..

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

      facts

    • @shubhamkale735
      @shubhamkale735 3 года назад +3

      Memory leak is just like an angry wife , you can't it control without skills

  • @TKDVL
    @TKDVL 3 года назад +412

    I just love how Jeff finds the best fitting gif for every situation

    • @darshgupta6276
      @darshgupta6276 3 года назад +18

      He should do a tutorial on it.

    • @dfla5472
      @dfla5472 3 года назад +5

      Popeye knotting the water was hilarious

    • @brhh
      @brhh 3 года назад +8

      his name is jeff?

    • @krazymeanie
      @krazymeanie 3 года назад +1

      @@brhh Yeah

    • @leonhma
      @leonhma Год назад +3

      He's using a vector database. He's got a tutorial on beyond fireship I think

  • @CoryTheSimmons
    @CoryTheSimmons 3 года назад +162

    Would kill for a 10 min vid on practical memory leak fixing.

    • @avidrucker
      @avidrucker 3 года назад +1

      Yes please Chris!!!

    • @pixelstriko1642
      @pixelstriko1642 Год назад +6

      Ever heard of Rust?

    • @cucumberwithketchup
      @cucumberwithketchup Год назад +4

      Every time it is literally fucking lottery and each time it is something completely new and random, no way you can do tutorial on this.

    • @poolkrooni
      @poolkrooni Год назад +1

      fuite js 😉

    • @VivekYadav-ds8oz
      @VivekYadav-ds8oz Год назад +2

      @@pixelstriko1642 Few days earlier I would've said that Rust doesn't technically prevent memory leaks, but it does make it harder. However I remember Primeagen saying that it's hard to keep Rust in long-running processes as it (or rather some popular framework) does leak memory.

  • @SauravHiremath
    @SauravHiremath 3 года назад +185

    Clear and concise. I like it!

    • @shivam62002
      @shivam62002 3 года назад +1

      Idk why I read your comment as clear as cocaine

    • @paprukas
      @paprukas 3 года назад +1

      To avoid memory leak

  • @mtyEyes
    @mtyEyes 3 года назад +6

    The "more you know" melody at the end is :chefs-kiss

  • @LittleFearTV
    @LittleFearTV 3 года назад +56

    Man your shorts are lit. One can say they are .... ON FIRE! 🔥😎

  • @andrewfong101
    @andrewfong101 3 года назад +23

    A moment of silence for those poor souls who actually needed to fix a memory leak right after this video has ended.

  • @Frozander
    @Frozander 3 года назад +87

    I needed to use it like 5 minutes ago, nice coincidence

    • @coltzi
      @coltzi 3 года назад +3

      sure you were

    • @paulmaccormick
      @paulmaccormick 3 года назад +1

      sure you were

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

      Hello search engine God

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

      Sure u never got targeted recommended content front of Internet lol

  • @urdarkside1
    @urdarkside1 3 года назад +22

    "Now it's upto you to fix it" The most dreaded part. 💀

  • @dika2saja
    @dika2saja 3 года назад +164

    90 % JS developer doesn't care this problem. The main problem of Chrome eats rams because of bad coded JS frontend.

    • @ishdx9374
      @ishdx9374 3 года назад +1

      this ^^

    • @VarezYeyez
      @VarezYeyez 3 года назад +3

      This must get pinned

    • @danielegvi
      @danielegvi 3 года назад +70

      90% of JS developers don’t care about *anything*, period. An alarming amount of people who do JS don’t give a damn about performance, security, maintainability or anything like that. They just want to get stuff done even if it’s as quickly and dirty as possible. The language is way too forgiving, and without a linter or anything, it allows people to create some of the most cursed things this planet has ever seen.

    • @joopie46614
      @joopie46614 3 года назад +1

      No. It's because of how badly chromium was written.

    • @parlor3115
      @parlor3115 3 года назад +1

      If you're comparing it to Firefox, then you should know the two aren't different.

  • @akunformalitas
    @akunformalitas 3 года назад +4

    Browsers dev tools are so overwhelmingly generous and forgiving that developers take for granted.

  • @StuartLoria
    @StuartLoria 3 года назад +61

    A series of long videos with the complete process to fix common or tricky issues would be great.
    These issues are like Nessy, they tell you about it but they never really show you.

  • @riddheshmarkandeya7147
    @riddheshmarkandeya7147 3 года назад +14

    To show power of the Flex Tape, I sawed this RAM in half.

  • @celebrityhouse40
    @celebrityhouse40 3 года назад +9

    You are my Great Inspiration Sir!...Love you content , Watching it from Nepal...

  • @TryallAllombria
    @TryallAllombria 3 года назад +10

    "You have a memory leak ?"
    "Solution : Don't"

  • @flleaf
    @flleaf 3 года назад +1

    Each of his shorts videos is a piece of art

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

    This man could literally post a 3 second video on anything and it will still be the most fun, visually incredible and best narrated coding video on the platform. Love it!

  • @aristotle7745
    @aristotle7745 2 года назад +2

    Garbage collection is every Friday, with recycling every second Friday... Just have to write that into the logic. 🤡

  • @tobb10001
    @tobb10001 3 года назад +112

    Me, who uses C or C++ most of the time:
    Memory Leaks in JavaScript? I thought it had a Garbage Collector...
    Edit: Folks, I watched and understand the video. You don't need to explain it to me over and over again...

    • @kartonrad
      @kartonrad 3 года назад +11

      Me registering an event listener every frame

    • @kartonrad
      @kartonrad 3 года назад +6

      I think thats the way to leak
      Yk create objects that are referenced but useless
      It can heppen with react when you register an event meant to change a component, but that component is gone
      The event listener still fires and changes the dead component object, which is dangling only from the closure

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

      @@mvpuccino i mean it does, but there are some events which are global, like timers for ex. it does not get scoped to a function stack frame, and these need to be managed manually.

    • @sylvereleipertz955
      @sylvereleipertz955 3 года назад +1

      Only objects that are no more referenced are eligible to garbage collector

    • @soniablanche5672
      @soniablanche5672 3 года назад +1

      You can't garbage collect data that is still being referenced. If you have a huge array that is only referenced in one variable, the trick is to set that variable to null or empty array. The big array will eventually be garbage collected, but if you don't do that it will stay in memory forever.

  • @satishranjan3041
    @satishranjan3041 3 года назад +3

    It would be very helpful..
    If you make a slow, janky and frozen website and then tought us how to fix it...

  • @pavelvigilev9584
    @pavelvigilev9584 3 года назад +3

    >GC can't do its job, because you are storing your objects somewhere, so you have a memory leak
    Why people call it memory leak if it's just a garbage code. Memory leak happens if you lose a pointer to allocated object and there is no way how to remove it. In situation described above, it's just a garbage code where a you don't understand a purpose of allocated objects and their life time.

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

    I'm just getting started with web development I'm not sure what most of these shorts mean but I know that I'm going to need them

  • @harshith_takkala
    @harshith_takkala 3 года назад +8

    The popeye has fixed two water leakage at once. 🔥😂

  • @arwahsapi
    @arwahsapi 3 года назад +2

    I miss the dial up connection in the 90s, when displaying alert box and frames on web pages were something.

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

    Holy shit out of 10 articles vs 40 second video, this is how one should explain short topics. Wonderful

  • @LongNguyen-jk5dh
    @LongNguyen-jk5dh 3 года назад +1

    Come for the memes, stay for content.

  • @unmy400
    @unmy400 3 года назад +1

    an actual important topic and you didn't went all in, sadge

  • @justanotherhotguy
    @justanotherhotguy 3 года назад +1

    Instructions unclear, patient lost all memories.

  • @talhaibnemahmud
    @talhaibnemahmud 3 года назад +3

    Rust in 100 seconds

  • @djcardwellai
    @djcardwellai 3 года назад +1

    I'm offended that RUclips recommended this video to me.

  • @shubhamkale735
    @shubhamkale735 3 года назад +2

    Memory leak is just like an angry wife , you can't control it without skills

  • @Markenbreit
    @Markenbreit 7 месяцев назад

    I love the photos and videos you are using in your videos 😂

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

    A full video on the subject would be interresting :D

  • @Dr_Larken
    @Dr_Larken Год назад +2

    Anybody else but stop laughing when he saw where he got the lighter!?

  • @Reactiive
    @Reactiive 3 года назад +1

    "Now it's up to you to fix it" 🥲

  • @peoplearecool8766
    @peoplearecool8766 3 года назад +13

    Heyy few days ago I was studying about javascript performance and memory management topics which includes memory leaks and garbage collections, I was searching in youtube and googling 4-5 hours about those subjects and now firebase uploads this video xD is this a coincident ? I think he is tracking my device :(((

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

    Perfectly timed video. for my situation at work

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

    This topic deserves much more than just 40 secs

  • @manantank
    @manantank 3 года назад +1

    You don't even have to use the performance panel. Just go the settings - task manager in chrome. In the task manager turn on the JavaScript memory column and check for any tab that is seemly doing nothing but the memory usage keeps going up and up. That is the sure sign of a memory leak.

  • @RaigyoEcU
    @RaigyoEcU Год назад +1

    Now i'm curious to check my old projects and SEE how fkup they were

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

    Actually learned something new, thank you

  • @eonshade6297
    @eonshade6297 3 года назад +1

    Me typing "tail /dev/zero"
    Linux: *I don't feel so good*

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

    Short and clear, nice.

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

    You can also see more about the Critical Rendering Path (DOM, CSSOM...) on the performance tab.

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

    "Now it's up to you to fix it"
    *groans*

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

    Right on time, I need this like today for an application I am trying to launch.

  • @torvic99
    @torvic99 2 года назад

    There should be more channels like this one…

  • @stugeh
    @stugeh 3 года назад +1

    I didn't even know that was possible with javascript.

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

    This channel is dope af.

  • @obinator9065
    @obinator9065 3 года назад +1

    My brain has a memory leak too but whatever

  • @manikya.kallimani
    @manikya.kallimani 3 года назад +3

    Can you make video on new Angular Chrome Extension. And how to optimize performance of an Angular App. And how to Debug Profiler.

  • @LazyCoffJelli
    @LazyCoffJelli 2 года назад

    "Is your memory leaking?"
    Fnf corruption fans: Quite literally

  • @webcodeexplainedYT
    @webcodeexplainedYT 3 года назад +2

    Many of us don't know hidden gems in Chrome dev tools.

    • @nolram
      @nolram 3 года назад +3

      ... there are more.
      In the Firefox dev edition :)

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

      Firefox dev tools are superior IMO

  • @prajval37
    @prajval37 2 года назад

    JS devs: This seems hard to fix.
    C and C++ devs: Hire us! We will solve the problem in a minute.

  • @jimbean4945
    @jimbean4945 2 года назад

    I reckon if this video was about 15 seconds longer it would have been the most useful video on youtube...

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

    I was just researching how to identify memory leaks in my React Native app when I found this on my feed. Spooky.

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

    Popeye is the TRUE water bender!

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

    Direct to the point

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

    Unless your memory leak is due to an . Then you will only solve it by commenting and uncommenting out every single piece of code until you find the cause.

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

    after laracasts, this is the best channel on internet for me.

  • @rishabhanand4270
    @rishabhanand4270 3 года назад +1

    Just put it in the backlog. And forget about it.

  • @fatgolem69
    @fatgolem69 3 года назад +1

    Like the name
    Your videos are Fire

  • @weeb3277
    @weeb3277 3 года назад +1

    Look up on google "how to tell if you have dementia"
    Notice that you already visited all the links.
    "Shid the memory is leaking".

  • @Kevinskie_
    @Kevinskie_ Год назад

    A lot of festival websites with flashy animations seem to have this

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

    Google:"No i dont think i will"

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

    "its up yo you to fix it"
    means : "ain't gonna deal with those garbage"

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

    Best youtube channel ever 🤟

  • @vdynmx
    @vdynmx 3 года назад +17

    slow down... how do we fix it ?

    • @WACdeG
      @WACdeG 3 года назад +1

      remove the refrence to the object/value

    • @Fireship
      @Fireship  3 года назад +11

      I'll explain that in a future video.

    • @ishdx9374
      @ishdx9374 3 года назад +1

      use web assembly

  • @blank-vw2sb
    @blank-vw2sb 3 года назад

    Pop eye the sailor man! Toot toot!

  • @ccristian1715
    @ccristian1715 3 года назад +1

    Should I be worried if it's flat line? 🤔

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

    If it's not broken don't fix it. If it's leaking, well, it's leaking.

  • @ukpauchechi
    @ukpauchechi Год назад +1

    Instruction unclear
    Deleted OS

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

    No, my diaper is. Now please change me.

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

    Very useful ! but how should we release the heap ?

  • @АндрейДемченко-ж6ц
    @АндрейДемченко-ж6ц 3 года назад

    Users at this time: "Why not just write without bugs?" :D

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

    did you recorded it on your smartphone ?

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

    Can you please make a quick understandable video/demo of require() and module. exports, differences with import

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

      Good'n'old CommonJS. The main reason I ditched Node.js and migrated to Deno.

    • @user-he4ef9br7z
      @user-he4ef9br7z 3 года назад

      @@softwarelivre2389 But how do you import stuff you need only once?
      In node you can do
      return require('foo').bar(arg);
      Besides that require is a function which makes it more flexible.

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

      @@user-he4ef9br7z import { element } from "./modules/my_module.js";

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

      @@user-he4ef9br7z require is a legacy method of importing code, one that I've never seen anyone like more than the ES6 method before this day. I'm a bit surprised, for sure. Anyway, even Node doesn't use it anymore because it is weak, limited and less reliable, but they for sure are not doing it the correct way.

  • @martynclarke8400
    @martynclarke8400 Год назад +1

    Memory leak in Javascript? :O My goodness, gotta have pretty low standards to be dealing with this issue?

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

    Full stack devs treat front-end as make it pretty kind of notation. Like dude, where the fuck is your security, why is the website freezing, theres no state here, why is this global, the fuck is this middleware. etc.

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

    Blazor in 100 seconds!!! Would be interesting to see a replacement for js in the client side.

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

    Ive subbed and changed the bell to 'All' but I didnt get a notification? Do shorts not count?

  • @kuhljazz
    @kuhljazz 3 года назад +1

    Better don’t use JavaScript at all because it’s insecure

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

    Actually you should compare snapshots instead of looking at just the one

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

    they invented a gc to prevent leaks

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

    Wow. New super power unlocked!

  • @kawakami_idv
    @kawakami_idv 3 года назад +2

    What about a WebGL game made with js? It uses about 600 ram, but heap usage only shows 30Mb. Help please:)

  • @66IOU3
    @66IOU3 3 года назад +2

    just don't use any memory problem solved

  • @Alexthereek-ob7vt
    @Alexthereek-ob7vt 2 года назад

    If you're website has leaked. Then you are shit out of luck until you fix it!

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

    In this regard Firefox is way better. It provides you with nice colorful memory map and you can make snapshots persistent.

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

    Where do you get these gifs and jpgs? The smoking fat guy is an old meme on Chinese Internet about ten years ago.

  • @Alex-my1qz
    @Alex-my1qz 3 года назад +1

    Love the end lol

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

    Next video: how to fix memory leak

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

    My Zen Master...Hail Massa...

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

    Love the info, but absolutely hate the format. Please keep short video to Tim Tok only 🙏🏼

  • @hl7297
    @hl7297 3 года назад +1

    You're now my favorite tiktoker

  • @NoahLanson
    @NoahLanson 3 года назад +3

    Rust: What’s a leak?

    • @khai96x
      @khai96x 3 года назад +3

      Rust does not consider memory leak unsafe.
      In Rust, you may accidentally cause memory leak by creating circular smart pointers (Rc, Arc), you can also intentionally cause memory leak by calling std::mem::forget.

    • @ishdx9374
      @ishdx9374 3 года назад +1

      rust doesn't prevent leaks in the slightest, RC's can leak and there's nothing rust can do about it

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

    its the garbage collector for me

  • @dabbopabblo
    @dabbopabblo 2 года назад

    I discovered the shop I hand programmed for my games website literally was referencing every item from every page loaded in memory yet still creating new items when the same category that had already been loaded was selected again

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

    Wow, this has good knowledge but I lack the intelligence to understand

  • @moon911x
    @moon911x Год назад

    *now it's up to you to fix it* 💀