Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use boost::spirit for weights parsing. #516

Merged
merged 1 commit into from
May 4, 2018

Conversation

gcp
Copy link
Contributor

@gcp gcp commented May 3, 2018

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
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