Ah, well if you can build your own VM, then it would be easy to add as a named primitive. On 2010-03-02, at 4:34 PM, Alexandre Bergel wrote:
Well it seems rather special purpose. What are you using it for? Why is the cost impacting your work?
There is an excellent paper at oopsla'09 that shows the method call graph can be effectively inferred using the method call stack depth: http://www-plan.cs.colorado.edu/klipto/mytkowicz-oopsla09.pdf
Executing "[ running sender notNil ] whileTrue: [ running := running sender. depth := depth + 1]" before each method execution of my application terribly slows it down.
Cheers, Alexandre
-- =========================================================================== John M. McIntosh <johnmci@smalltalkconsulting.com> Twitter: squeaker68882 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ===========================================================================