You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.
Looking through the code I see when you play with atoms (at least for bool true and false) you are creating all the time them or extract the string in order to compare.
Hello,
Looking through the code I see when you play with atoms (at least for bool
true
andfalse
) you are creating all the time them or extract the string in order to compare.What you can do instead is:
You can declare a global
struct
with all atoms:In
on_nif_load(ErlNifEnv* env, void** priv_data, ERL_NIF_TERM load_info)
you can initialize them:I will also changed the following functions like
Kind regards,
Silviu
The text was updated successfully, but these errors were encountered: