Skip to content

Cppcheck suggested performance improvement#7

Closed
neuralsandwich wants to merge 1 commit intotinyobjloader:masterfrom
neuralsandwich:master
Closed

Cppcheck suggested performance improvement#7
neuralsandwich wants to merge 1 commit intotinyobjloader:masterfrom
neuralsandwich:master

Conversation

@neuralsandwich
Copy link
Contributor

Cppcheck suggests:
variables should be passed by reference.
They are passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.

This gives a 9% performance boost in my project.
26.28s to load instead of 28.94s

variables should be passed by reference.
They are passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.

This gives a 9% performance boost in my project.
26.28s to load instead of 28.94s
@syoyo
Copy link
Collaborator

syoyo commented Nov 26, 2013

Cool! Merged. Thanks a lot!

dgrat pushed a commit to dgrat/tinyobjloader that referenced this pull request Nov 1, 2020
Development->Master Modifed README and LICENSE
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