|
Re: Fusion-ifying proto parse trees: msg#00046parsers.spirit.devel
Joel de Guzman wrote: Eric Niebler wrote: Yes, sure but then the view returned by push_back will be, essentially, a proto parse tree. :-) And you'll want Fusion algorithms to work efficiently with them, so they should use a segmented iteration scheme. In other words, a Fusion join_view is a text-book example of a segmented data structure. If we add segmented algorithms to Fusion, they'll work better with your lazy views. Pardon my stubbornness. It's just that I always strive to arrive IMO, Fusion needs this extra complexity. Efficient evaluation of lazy sequences should be Fusion's bread and butter. Did you see how much faster segmented proto was over non-segmented proto? Today's join_views == non-segmented proto == the slow badness. Segmented join_views == mmm, tasty goodness. :-) I'm also not sure how much complexity there really is. My impression is that making a non-segmented algorithm into a segmented one is a fairly mechanical translation. We may even get by with some Boost.PP magic to do it for us. I haven't tried making a segmented view, but I'm guessing that's fairly mechanical, as well. It's certainly worth looking into IMO, but I'm not trying to deceive you -- this would be a sea-change for Fusion. Ok... I'd really want to take a step back and meditate on this. OK, cool. -- Eric Niebler Boost Consulting www.boost-consulting.com ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Fusion-ifying proto parse trees: 00046, Joel de Guzman |
|---|---|
| Next by Date: | Re: Fusion-ifying proto parse trees: 00046, Joel de Guzman |
| Previous by Thread: | Re: Fusion-ifying proto parse treesi: 00046, Joel de Guzman |
| Next by Thread: | Re: Fusion-ifying proto parse trees: 00046, Joel de Guzman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |