We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Using functions instead of macros to speeding up building for JSB project
Using functions instead of macros to speeding up building for JSB project
Refactor #2247 [Closed]
JS_NEW_PROXY —> jsb_new_proxy
JS_GET_PROXY —> jsb_get_native_proxy
JS_GET_NATIVE_PROXY —> jsb_get_js_proxy
JS_REMOVE_PROXY —> jsb_remove_proxy
Since the implementation of JS_XXX macros are using UTHASH which is also implemented by marcos totally,
it will expand jsb_cocos2dx_auto.cpp to a very huge state when compiling which makes the compilation very slow.
On android, just building jsb_cocos2dx_auto.cpp and jsb_cocos2dx_extension_auto.cpp will take 5 minutes.
After these changes, it takes only 2 minutes, it means that, we can save about more than half time than before.