From: Roger Pack Date: 2009-12-01T04:37:37+09:00 Subject: [ruby-core:26960] Re: Caching #to_s for immutables (and a possible future for constant-folding) [with patch] > Yes. �The MRI test suite runs at 45 sec with these changes and at 53 sec > without. �The MRI tests pass with no issues. �There is a naive test in the > attached patch that demonstrates the improvements. Wow that's a pretty good improvement. I like it. What's the speed difference for make test-all? >> Does it break rails? > > I don't know yet. �I need to setup a proper Rails test environment. Yeah that would be nice, as well as comparing speeds for the test runs to see if it's useful. > There maybe some native thread issues with the cache hash tables, but I did > start adding a mutex to each one. �I have not tested on 64-bit or anything > other that Ubunutu 9.10. Would there be thread issues if each thread runs under the GLI? Thanks. -r