google-ar / WebARonARCore

An experimental Chromium modification in the form of an app for Android that lets developers build Augmented Reality (AR) experiences using web technologies on top of Google's ARCore.
https://developers.google.com/ar/develop/web/getting-started
Apache License 2.0
757 stars 115 forks source link

dispatchPlaneEvent should reserveCapacity for the HeapVector #26

Open judax opened 7 years ago

judax commented 7 years ago

A minor improvement but as the dispatchPlaneEvent in VRDisplay.cpp is just copying elements from a container to another, reserving the capacity may avoid intermediate copies and allocations.