Upgrade to Pro — share decks privately, control downloads, hide ads and more …

给 Node.js 插上 C++ 的翅膀

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on. →
ZHU, Kaidi
November 10, 2018

给 Node.js 插上 C++ 的翅膀

ZHU, Kaidi

November 10, 2018

Transcript

44 slides
  1. 如何 require The process.dlopen() method allows to dynamically load shared

    objects. It is primarily used by require() to load C++ Addons, and should not be used directly, except in special cases. In other words, require() should be preferred over process.dlopen(), unless there are specific reasons.
  2. 性能: NBoBy        &#

    &)#("  "" + %) %)!$                                                           ,               ((%' #"& '" (" %' # #( #"& '" %&$&"# #$* ("!
  3. 3.1. 环境        

             2 +- - .
  4. 句柄作用域(HandleScHpe) +< G$NH;:3LMG5VO G(H/ 7<R L =06VQ'.O</1H$N% !/7*GVC9 L2TJ E

    • K< G • P< G G6" =H,)#=UH< G BA D-@>(4HLIEH$NH5VR %$N =UH G IEV+=U GF8H5VO?5S(H$N& L 2
  5. A header file filled with macro and utility goodness for

    making add-on development for Node.js easier across versions 0.8, 0.10, 0.12, 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10. 3.4. NAN
  6. 句柄(Handle)与请求(RequeHt)  EF2<??@2D(  EF2:3>6<72D(    EF2D5@2D(0-/ 

    EF2E6@2D(1./  EF2D;=7B2D(  EF23CG>52D( ' # & <;4EF "! % <;4EF  ,,, $ EF2B7A2D($   EF297D366B;>8?2D( EF297D366B;>8?)* EF25?>>75D2D( EF2<;CD7>)* H
  7. N-APA         

               

More Decks by ZHU, Kaidi

Other Decks in Programming