logo       

Re: a self-optimizing alternative parser: msg#00072

parsers.spirit.devel

Subject: Re: a self-optimizing alternative parser

Tobias Schwinger wrote:
switch(parser_index)
{
case 0: return at_c<Parsers,0>(parsers)->parse [...]
case 1: return at_c<Parsers,1>(parsers)->parse [...]
case 2: return at_c<Parsers,2>(parsers)->parse [...]
// [...]
}
// naive code for illustration (fusion::accumulate // allows us to implement a scalable version)

Minor fix: It's not possible with folding, because of the runtime termination.
Iterators work, though...



-------------------------------------------------------
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>
Google Custom Search

News | FAQ | advertise