GitHub user robertkowalski opened a pull request:
https://github.com/apache/couchdb-couch/pull/70
add couch_util_clock:rfc1123()
as formatting for every request takes time, we cache the time
every second using a gen_server. cowboy has a very nice & clean
implementation of it, so i used this gen_server.
i was able to measure a 2% speed improvement on my laptop when
using it for obtaining the date of the response headers
COUCHDB-2734
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/robertkowalski/couchdb-couch
COUCHDB-2734-heaader-date
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb-couch/pull/70.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #70
----
commit b3ee2ea8d353e6859930b89d8168fe669daf8be2
Author: Robert Kowalski <[email protected]>
Date: 2015-06-26T21:50:21Z
add couch_util_clock:rfc1123()
as formatting for every request takes time, we cache the time
every second using a gen_server. cowboy has a very nice & clean
implementation of it, so i used this gen_server.
i was able to measure a 2% speed improvement on my laptop when
using it for obtaining the date of the response headers
COUCHDB-2734
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---