Since I donโt know exactly what your preferences are, I assume that you are asking which one is faster when I have n processes:
Not knowing 100%, I do not think that this will be of great importance. If you have hundreds or thousands of instances of gen_server, I would advise you to spend time optimizing them. If you still need to chase microseconds while delivering messages, you can always try and analyze profiling to see which one is faster.
source share