[MacRuby-devel] Regular expression related performance

Laurent Sansonetti lsansonetti at apple.com
Wed Dec 1 14:31:01 PST 2010


On Dec 1, 2010, at 2:20 PM, Jordan K. Hubbard wrote:

> 
> On Dec 1, 2010, at 2:15 PM, Laurent Sansonetti wrote:
> 
>>> http://swtch.com/~rsc/regexp/regexp1.html
>> 
>> MacRuby is using ICU. I'm not aware of ICU's internals, but I suspect the performance issue is probably elsewhere here, given the huge difference against 1.8.
> 
> It would be instructive to try and reduce this case somewhat, just in case that's true.  At the very least, it would be interesting to compile MacRuby with profiling enabled, run the test, and then see where all the hotspot calls were.  Do we have an easy way of doing that with the existing rake files?

The easiest way is probably to use Shark (that's what I always do). No need to recompile the project then :) I will investigate the problem but I already suspect it's because of libauto's slow allocator.

Laurent

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20101201/c8910063/attachment.html>


More information about the MacRuby-devel mailing list