Boost Spirit QI slow

前端 未结 3 421
终归单人心
终归单人心 2020-12-19 06:50

I try to parse TPCH files with Boost Spirit QI. My implementation inspired by the employee example of Spirit QI ( http://www.boost.org/doc/libs/1_52_0/libs/spirit/example/qi

3条回答
  •  青春惊慌失措
    2020-12-19 07:33

    Are you using -O2 when compiling?

    Boosts libraries have a lot of redundancy that are removed when using optimization flags.

    Another possible solution is use Repetition Parser Directive: http://www.boost.org/doc/libs/1_52_0/libs/spirit/doc/html/spirit/qi/reference/directive/repeat.html

提交回复
热议问题