← Back to context

Comment by amelius

19 hours ago

Go has shorter and more predictable GC pauses. If a reference count drops to zero in Rust, it may take an unbounded time to free all the things it refers to (recursively if necessary).

I still prefer having deterministic control over when the free occurs.

For example, I can transmit the response to the client and then free the memory afterwards so they're not kept waiting.

  • What if you have many clients that are constantly coming in, when do you decide to free the memory after sending their respective responses?