use
template<bool have_firstbyte, bool want_earliest_match, bool run_forward>
inline bool DFA::InlinedSearchLoop(SearchParams* params);
could force compiler to generate 8 optimized copies of the function, and this
could avoid to write 8 wrapper functions(SearchFFF to SearchTTT).
Because compiler always regard template param as constant, even without any
optimization.
Original issue reported on code.google.com by rock...@gmail.com on 9 Mar 2012 at 2:55
Original issue reported on code.google.com by
rock...@gmail.com
on 9 Mar 2012 at 2:55