{"id":108,"date":"2016-03-18T17:49:03","date_gmt":"2016-03-18T12:19:03","guid":{"rendered":"http:\/\/madhurendra.com\/?p=108"},"modified":"2016-03-18T17:49:21","modified_gmt":"2016-03-18T12:19:21","slug":"nodejs-improving-performance-using-native-binding","status":"publish","type":"post","link":"https:\/\/madhurendra.com\/nodejs-improving-performance-using-native-binding\/","title":{"rendered":"NodeJs – Improving performance using native binding"},"content":{"rendered":"

This is known fact that javascript is really slow in terms of sync operations like multiplications, divisions etc. – Since nodejs is based on js – Node inherits the curse.
\nCheck http:\/\/benchmarksgame.alioth.debian.org\/u64\/compare.php?lang=v8&lang2=gpp<\/a> this article to cross check the fact. Nodejs is fast in some aspects. I love it \ud83d\ude1b<\/p>\n

Doesn’t matter how much you improve your algorithm but c++ will outperform if you are running a sophisticated algorithm but one can push through imprecation.
\nNodejs is based on V8 (Most ports), v8 based on C++, You must be already aware of that you can use C++ in nodejs – But it seems complex. <\/p>\n

But it is not – It is easy to build a native extension & compile in seconds https:\/\/medium.com\/@devlucky\/how-to-get-a-performance-boost-using-node-js-native-addons-fd3a24719c85#.3uzqa9r4w<\/a> this article does well in explaining basics. but if you want to dive deep check official documentation<\/a>.<\/p>\n

if you want a really explanatory presentation check https:\/\/ivanvergiliev.github.io\/node-cpp\/#opening<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

This is known fact that javascript is really slow in terms of sync operations like multiplications, divisions etc. – Since nodejs is based on js – Node inherits the curse. Check http:\/\/benchmarksgame.alioth.debian.org\/u64\/compare.php?lang=v8&lang2=gpp this article to cross check the fact. Nodejs is fast in some aspects. I love it \ud83d\ude1b Doesn’t matter how much you improve … <\/p>\n

Continue reading<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[13,1],"tags":[11],"class_list":["post-108","post","type-post","status-publish","format-standard","hentry","category-javascript","category-uncategorized","tag-nodejs","item-wrap"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_shortlink":"https:\/\/wp.me\/pciGs2-1K","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/posts\/108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/comments?post=108"}],"version-history":[{"count":1,"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/posts\/108\/revisions"}],"predecessor-version":[{"id":109,"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/posts\/108\/revisions\/109"}],"wp:attachment":[{"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/media?parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/categories?post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/tags?post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}