Open scottlingran opened 9 years ago
On further trial/error, it seems this is the line making it slow
https://github.com/dasmith/stanford-corenlp-python/blob/master/corenlp.py#L189-L193
while True:
try:
self.corenlp.read_nonblocking (4000, 0.3)
except pexpect.TIMEOUT:
break
Commenting it out reduces the the response time to ~130ms
Not sure what the purpose is?
I noticed a parse through the json-rpc takes 400ms longer than using the java interactive shell.
What's the best way to cut this down? Is it a python issue?
Happy to work on this for a pull request.