ktye / i

interpret
100 stars 17 forks source link

-n_ n# reuse #49

Closed ktye closed 10 months ago

ktye commented 10 months ago

ndrop(-1, x) calls ntake which does not reuse memory on rc1.

e.g.

    s := sz(t)
    if I32(yp-4) == 1 && bucket(s*nn(y)) == bucket(s*n) && t < Lt {
        SetI32(yp-12, n)
        return y
    }
ktye commented 10 months ago

https://github.com/ktye/i/blob/b301d82ebf50d9d9b58c58126b9b22ec41199861/verbs.go#L298-L302 in case the stack branch won't be merged