3 ms·
Implement it in C. Also its likely more a python problem than a "high level" language problem.
by crazypyro 12y ago
Implement it in C.
Also its likely more a python problem than a "high level" language problem.
- fastball 12y agoI blame all networking issues on the GIL.
- jnazario 12y agothere's a userland stack written in C in honeyd. http://honeyd.org/ http://honeyd.org/ (slow to respond) and http://en.wikipedia.org/wiki/Honeyd http://en.wikipedia.org/wiki/Honeyd
- crazypyro 12y agoExcept that was written for an explicit purpose that wasn't speed. I fail to see how my suggestion of implementing low level networking in C and linking that to python code is considered a poor solution.
- mkonecny 12y agoThis has nothing to do with Python or C. More likely he has a bug in his code.
- crazypyro 12y agoPython being magnitudes slower than C for networking code has a lot to do with Python, actually. Other smarter people have already explained it better than I can up above.