|
|
|
|
|
by shawn
2839 days ago
|
|
For the loop inside of map, you need to produce side exits and new traces for each function passed in. Is it true to say that if two functions have the same body and arglist, and capture no variables, then you should be able to reuse the same traces? This doesn’t happen very often in real code, but it’s useful to understand the problem. |
|
But there are all sorts of reasons why this might not be happening in that bug report I linked to. It might be due to the definition of the map and reduce functions (luafun adds lots of features to them, so its not just a simple straightforward loop) or it could be due to something about luajit (it is a complex piece of software after all).
The only way to know for sure would be to examine the traces with "luajit -jdump"