Can I get a list of all currently-registered atoms?

前端 未结 4 1196
梦如初夏
梦如初夏 2021-01-11 10:07

My project has blown through the max 1M atoms, we\'ve cranked up the limit, but I need to apply some sanity to the code that people are submitting with regard to list_to_ato

4条回答
  •  抹茶落季
    2021-01-11 10:50

    I dare say that if you use more than 1M atoms, then you are doing something wrong. Atoms are intended to be static as soon as the application runs or at least upper bounded by some small number, 3000 or so for a medium sized application.

    Be very careful when an enemy can generate atoms in your vm. especially calls like list_to_atom/1 is somewhat dangerous.

提交回复
热议问题