Finally I have a valid reason to learn about memory management. It was also hella weird when encountering it.

  • GissaMittJobb@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 days ago

    Yeah, you can use the Epsilon garbage collector in Java for a no-op garbage collection strategy.

    For short-lived programs that do not risk hitting any memory constraints, it makes a lot of sense - zero time wasted on cleanup during execution, then you just do it all at the end when killing the program, which you can do in constant time since you don’t need to reason about what should remain or not.