On Mon, Feb 6, 2012 at 14:46, Etienne <et.mara...@gmail.com> wrote: > Hi, > > In a Pyramid (web framework in Python) web application, I compile a C+ > + library with SWIG and the program runs in 10s. > > I would like to migrate the application to node.js (0.6.5) and I have > put the library without change in a node-addon, that I compile with > node-waf. > The file wscript: > def set_options(opt): > opt.tool_options("compiler_cxx") > > def configure(conf): > conf.check_tool("compiler_cxx") > conf.check_tool("node_addon") > > def build(bld): > obj = bld.new_task_gen("cxx", "shlib", "node_addon") > obj.target = "serie" > obj.source = "serie.cc" > > The program runs in 20s. > Have you any idea for that slowness? That occurs on my personnal > computer (mac os x snow Leopard) and also on the Webfaction server on > linux (node 0.6.5 also).
Etienne, you need to provide a lot more detail. What kind of C++ library is it, how and with what compiler flags did you compile it, have you profiled it, etc. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en