Major perfromance improvement via Obj-C++ rewrite