abingham / traad

An JSON+HTTP server for the rope Python refactoring library
MIT License
107 stars 20 forks source link

Investigate server performance #54

Closed abingham closed 10 years ago

abingham commented 10 years ago

Is it slow? The emacs client seems a bit sluggish, and it may be the server. (or it may be any number of things.) We should get some idea of how the server performs, and possible change over to something faster if possible.

abingham commented 10 years ago

Well, server performance seems reasonable. I can get a /code_assist/doc response over the pylons codebase in 1/50th of a second on my machine using the traad/test/time_trial.py script. The issue might be in the emacs bindings. Need to check this on a codebase I know has issues.

abingham commented 10 years ago

The issue turned out to be in the emacs 'request' package. For synchronous calls it uses the 'curl' program, and this was very slow. I was able to force it to use url-retrieve instead, and this is much faster.