Skip to content

Use boost::spirit for weights parsing.#516

Merged
killerducky merged 1 commit into
glinscott:nextfrom
gcp:spirit_parser
May 4, 2018
Merged

Use boost::spirit for weights parsing.#516
killerducky merged 1 commit into
glinscott:nextfrom
gcp:spirit_parser

Conversation

@gcp

@gcp gcp commented May 3, 2018

Copy link
Copy Markdown
Contributor

Using boost::Spirit::X3 for weights parsing is significantly faster in
startup. On my machine time goes from 3.5s to 2.8s. This does not
add any link time dependencies as the parser is header only.

This should improve the amount of timeouts when loading into UI's,
thought it likely needs a fundamental fix.

See also:
leela-zero/leela-zero#805

Using boost::Spirit::X3 for weights parsing is significantly faster in
startup. Current startup time goes from 3.5s to 2.8s.

See also:
leela-zero/leela-zero#805
@killerducky killerducky merged commit 5366cbc into glinscott:next May 4, 2018
@glinscott

Copy link
Copy Markdown
Owner

Ah, yes, I had removed this originally to build on ubuntu 14.04. But it's not a big deal. I'm actually impressed it's faster than the raw strtof code!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants