Javascript Vector Methods Cpp Performance Marine