When do you worry about stack size?

前端 未结 19 1192
难免孤独
难免孤独 2020-12-10 12:41

When you are programming in a language that allows you to use automatic allocation for very large objects, when and how do you worry about stack size? Are there any rules o

19条回答
  •  一向
    一向 (楼主)
    2020-12-10 13:31

    Shouldn't you be avoiding using the stack for allocating large objects in the first place? Use the heap, no?

提交回复
热议问题