Javascript Vector Methods Cpp Performance Placentia