3 ms·
Must be nice in the world of unfounded assertions. Tranquil achieves good performance (when compared to other dynamic languages like ruby or python) by using t
by fyolnish 14y ago
Must be nice in the world of unfounded assertions.
Tranquil achieves good performance (when compared to other dynamic languages like ruby or python) by using tagged pointers for numbers & bypassing messages for arithmetic operators if both operands are tagged; batching allocations for objects frequently used in the fastpath, and other tricks.
If you compare it with writing straight C ..obviously it's slow. But then so is anything else.
- jheriko 14y agoits perfectly well founded and measurable. my issue with objective-c and its runtime is the message passing implementation and the reliance on it - it is incredibly powerful, but the cost is phenomenal in the contexts i work with - and a common optimisation i find myself doing is making C++ style calls out of c functions with a 'this' as the first parameter. there is no real need for this cost if the compiler could have more information about use and respected the "don't pay for what you don't need"
- jheriko 14y ago(it is good you avoid it for operators etc. - so you must be aware of the issue and how it can be avoided with a little common sense and work)