Saturday, February 08, 2020

GoLang => Rust

Why Discord is switching from Go to Rust

Go is purple, Rust is blue.

"In Go, on cache key eviction, memory is not immediately freed. Instead, the garbage collector runs every so often to find any memory that has no references and then frees it. In other words, instead of freeing immediately after the memory is out of use, memory hangs out for a bit until the garbage collector can determine if it’s truly out of use. During garbage collection, Go has to do a lot of work to determine what memory is free, which can slow the program down."

No comments: