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

Small performance issue when getting triangles #37

Open
icedevelopment opened this issue Feb 15, 2022 · 0 comments
Open

Small performance issue when getting triangles #37

icedevelopment opened this issue Feb 15, 2022 · 0 comments

Comments

@icedevelopment
Copy link

Is it possible to change the return value of std::vectorp2t::Triangle* CDT::GetTriangles() ?

It receive a reference from sweep_context_->GetTriangles(); but it is converted into a copy of the vector that takes more time than if the vector returned by const reference.

Same for std::listp2t::Triangle* CDT::GetMap()

@icedevelopment icedevelopment changed the title Small performance issuewhen getting triangles Small performance issue when getting triangles Feb 16, 2022
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

No branches or pull requests

1 participant