gpt4 book ai didi

elixir - Elixir 有垃圾收集器吗?

转载 作者:行者123 更新时间:2023-12-03 23:28:14 27 4
gpt4 key购买 nike

我已经开始阅读有关 Elixir 编程语言的信息。

我明白那个:

  • 它是功能性的
  • 它是动态的,但支持@spec
  • 它基于 Erlang VM

  • 我的问题是:它是否有某种 GC?

    最佳答案

    是的,Erlang 有 GC,而且由于 Elixir 是基于 Erlang 构建的,因此它也有 GC。看到这个旧的 SO answer关于 Erlang GC 和 this一。 Elixir 站点对 GC 的引用如下:

    Due to their lightweight nature, it is not uncommon to have hundreds of thousands of processes running concurrently in the same machine. Isolation allows processes to be garbage collected independently, reducing system-wide pauses, and using all machine resources as efficiently as possible (vertical scaling).

    关于elixir - Elixir 有垃圾收集器吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29756647/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com