Skip to content

parser optimization step One#300

Merged
lefticus merged 3 commits into
ChaiScript:developfrom
niXman:develop
Dec 1, 2016
Merged

parser optimization step One#300
lefticus merged 3 commits into
ChaiScript:developfrom
niXman:develop

Conversation

@niXman

@niXman niXman commented Nov 3, 2016

Copy link
Copy Markdown
Contributor

Hi,

This simple PR speeds up ~13% of parsing time.

Tested using GCC-6.2.0.

@niXman

niXman commented Nov 3, 2016

Copy link
Copy Markdown
Contributor Author

Travis is broken? ;)

/home/travis/build.sh: line 47: [: !=: unary operator expected

@niXman

niXman commented Nov 4, 2016

Copy link
Copy Markdown
Contributor Author

The second PR saves ~9% of parsing time.

100% tests passed, 0 tests failed out of 408

@niXman

niXman commented Nov 4, 2016

Copy link
Copy Markdown
Contributor Author

ping?

@lefticus

lefticus commented Nov 7, 2016

Copy link
Copy Markdown
Member

I'm busy with other work right now, I'll get back to ChaiScript pull requests shortly.

@lefticus

Copy link
Copy Markdown
Member

What tests are you using to determine parsing time?

@niXman

niXman commented Nov 20, 2016

Copy link
Copy Markdown
Contributor Author

I used compiled_tests and integer_literal_test tests.

Callgrind files for original and optimised version in attachments. You can view it using kcachegrind.
chaiscript-callgrind.zip

@lefticus lefticus merged commit 1ea91fa into ChaiScript:develop Dec 1, 2016
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.

2 participants