Reducing default stack size from 8 MB to 8 KB - is it possible?
- Dominant language
- C++
- Stars
- 1.2k
- Forks
- 179
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 26
Description
Hi,
I reduced the default stack size from 8 MB to 8 KB. Surprisingly RAM usage remained the same in our test program which launches thousands of coroutines. Also they take a lot more time.
Is there a certain minimum it can't be lower than?
Go uses 2-4 KB, I thought it'd be possible with photon as well.
Thanks.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported test with thousands of coroutines while comparing 8 MB and 8 KB stacks, recording RAM usage and execution time. Trace the coroutine stack allocation entry point to determine whether a minimum stack size exists, and define done as a documented supported minimum or a validated explanation of the observed behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- operating-systems, performance
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100