5 ms·
The stack is cheaper, but it is a limited size. If you need more objects than would fit on the stack, pooling might be a better choice.
by tbirdz 11y ago
The stack is cheaper, but it is a limited size. If you need more objects than would fit on the stack, pooling might be a better choice.
- joelwilliamson 11y agoThe stack doesn't have to be limited. On a 64-bit system, you can give each thread a couple of terabytes of stack space with no problem.
- aidenn0 11y agoFor amd64 on linux you only have 128TB; with green threads I regularly use a lot more than 64 threads.