I use seqs as stacks extensively in one of my projects, and I found these are generally ok _unless_ you need to unwind your stack frames more then one item at a time: I believe `setLen()` can invoke the GC and cause performance degradation. Instead, I use a seq for storage but keep my own top value and provide some access functions which merely update the top value and read/write the seq's contents.
- Most efficient way to implement a stack using Nim? drkameleon
- Re: Most efficient way to implement a stack using Nim? mratsim
- Re: Most efficient way to implement a stack using Nim? zevv
