Re: Mason acceleration using C++
"Jeremy Kronuz" <[email protected]>
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
Are there any documents explaining Mason's architecture? 'cause I'd love to get to the bottom of this optimization controversy and once for all find if it's feasible or not... I'm an experienced C++ programmer but unfortunately I'm very new to Perl and Mason (still, I'm quickly learning) Kronuz. "Fools rush in where fools have been before" - Unknown >From: Dave Rolsky <[email protected]> >To: [email protected] >Subject: Re: [Mason-devel] Mason acceleration using C++ >Date: Wed, 13 Apr 2005 15:23:44 -0500 (CDT) > >On Tue, 12 Apr 2005, Jeremy Kronuz wrote: > >>I'm new to the Mason world, but I just wanted to know what's holding Mason >>from reaching the Embperl performance shown in some benchmarks. For what >>Ive read is the C portion of Embperl that makes it faster. Couldnt it be >>possible to rewrite strategic parts of Mason in C or C++ to surpass >>Embperl performance? Thats just a thought Ive been having since Im more >>inclined to Mason, but I like Embperl speed, and I dont think its just a >>philosophical matter; technically Embperl has a point there, I believe. > >We've discussed this a bit before. The problem here would be trying to >find some portion of the code that would both give a big speed boost and >also be reasonably easy to convert & maintain. > >The obvious big chunk is the lexer/compiler code, but given that we have >things like static_source mode to minimize parsing, this would probably be >a waste of time. > >I'm not sure what else would be a good target. Much of the code is broken >up into small methods, which aren't very amenable to translating to C. > >In my experience, the pieces that benefit most from being in C are complex >algorithms that can be wholesale rewritten into C (like I did for >DateTime), but Mason realy doesn't have much that fits in that category. > > >-dave > >/*=================================================== >VegGuide.Org www.BookIRead.com >Your guide to all that's veg. My book blog >===================================================*/ _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click