On 06/26/2013 12:56 AM, Peter Levart wrote: > Sorry, you are storing back when resizing. And you are resizing for > every exponent that is bigger that previous requested (cached). This can > lead to many resizings.
Dmitry had suggested going back to square one with his approach. I'll let him post his suggestion (I think it is simpler than both our versions). -Aleksey.