3 ms·
Plus also doesn’t the stack need to be small to fit into the CPU cache?
by cm2187 7y ago
Plus also doesn’t the stack need to be small to fit into the CPU cache?
- seventh-chord 7y agoThere is absolutely no requirement from the hardware that the stack be any particular size
- DaiPlusPlus 7y agoOn the Windows desktop, the default stack size is 1MB. In IIS-hosted applications the default stack size is reduced to 250KB due to the popularity of the now-outdated programming trope of "one thread per request (per-connection)". On x86 Linux the default stack size is 2MB - which seems generous.
- cm2187 7y agoI am not thinking requirement by rather performance wise.
- kragen 7y agoIf you start allocating multi-kilobyte objects in your stack frames, they are not going to fit into L1.