tkf / emacs-request

Request.el -- Easy HTTP request for Emacs Lisp
http://tkf.github.com/emacs-request/
GNU General Public License v3.0
629 stars 93 forks source link

Use url-retrieve silently #184

Closed nivekuil closed 4 years ago

nivekuil commented 4 years ago

Hide those Contacting host: localhost:8080 messages on every request, matching the behavior with the curl backend. I don't think there's a good reason to make this configurable.

If you're wondering why I'm using the url-retrieve backend at all, it seems synchronous curl is still quite slow as detailed in https://github.com/tkf/emacs-request/issues/5. In fact it seems to get 0.3 seconds added on to each request, and deleting the 0.3 from line 1244 does seem to make it run 300ms faster (though still not as fast as url-retrieve), though I didn't look to see if this would break anything outside my own use case.

dickmao commented 4 years ago

You're right, we could stand to poll more frequently than 300ms. Commit 912525c