mattbierner / khepri

ECMAScript derived programming language
http://khepri-lang.com/
MIT License
67 stars 3 forks source link

Better inlining heuristic #96

Open mattbierner opened 10 years ago

mattbierner commented 10 years ago

Currently any lambda function may be inlined but it is not always worthwhile to do so. For very complex expressions, I suspect this will actually decrease performance.

Both the context where inlining may be used and the complexity of the target should be considered.