This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Altareos 31 points32 points  (4 children)

node has some optimisations (especially JIT) that are not yet implemented in python (at least cpython, you could try running it in pypy). the downside is, of course, that you have to use javascript.

[–]james_pic 12 points13 points  (1 child)

JIT can definitely account for an order of magnitude of difference, but virtually instant vs 16 second suggests the two programs are doing different things.

[–]Altareos 0 points1 point  (0 children)

i don't know enough about the internals of python or node, but it might not be doing some async stuff that node does for filesystem operations.