The StandardStack implementation we have could use some extra care in how findCurrentFirst is currently implemented : iteration is intensive and we could avoid allocating the iterator by switching to a direct array implementation. This would also save some memory in allocating the StandardStack instance by “inlining” its internals. |