diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-09-21 10:31:03 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-10-12 12:29:09 -0300 |
commit | 5d8ce05b3f6fad79e37ed21c1076e47a322472c6 (patch) | |
tree | 7629a59887da63d44267e872bc8e33be6db36582 /testes/all.lua | |
parent | f83de8e34e24e30acf277f60de62a33bd51d1ddd (diff) | |
download | lua-5d8ce05b3f6fad79e37ed21c1076e47a322472c6.tar.gz lua-5d8ce05b3f6fad79e37ed21c1076e47a322472c6.tar.bz2 lua-5d8ce05b3f6fad79e37ed21c1076e47a322472c6.zip |
Back to a stackless implementation
A "with stack" implementation gains too little in performance to be
worth all the noise from C-stack overflows.
This commit is almost a sketch, to test performance. There are several
pending stuff:
- review control of C-stack overflow and error messages;
- what to do with setcstacklimit;
- review comments;
- review unroll of Lua calls.
Diffstat (limited to 'testes/all.lua')
-rw-r--r-- | testes/all.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testes/all.lua b/testes/all.lua index db074dd8..a4feeec1 100644 --- a/testes/all.lua +++ b/testes/all.lua | |||
@@ -127,8 +127,8 @@ else | |||
127 | end | 127 | end |
128 | 128 | ||
129 | Cstacklevel = function () | 129 | Cstacklevel = function () |
130 | local _, _, ncalls, nci = T.stacklevel() | 130 | local _, _, ncalls = T.stacklevel() |
131 | return ncalls + nci -- number of free slots in the C stack | 131 | return ncalls -- number of C calls |
132 | end | 132 | end |
133 | end | 133 | end |
134 | 134 | ||