The former needs to be allocated once per usage. The later is shared for all threads, which is more efficient. It can also be better debugged.
The former needs to be allocated once per usage. The later is shared for all threads, which is more efficient. It can also be better debugged.