optimize for read concurrency
Project: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/commit/b7aff437 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/tree/b7aff437 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/diff/b7aff437 Branch: refs/heads/master Commit: b7aff43702abfbee2a8d1503b2204caaf0791f3d Parents: 8ab7682 Author: Robert Kowalski <r...@kowalski.gd> Authored: Thu Jul 30 00:36:01 2015 +0200 Committer: Robert Kowalski <r...@kowalski.gd> Committed: Thu Jul 30 00:36:01 2015 +0200 ---------------------------------------------------------------------- src/mochiweb_clock.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/blob/b7aff437/src/mochiweb_clock.erl ---------------------------------------------------------------------- diff --git a/src/mochiweb_clock.erl b/src/mochiweb_clock.erl index 8762770..12381a0 100644 --- a/src/mochiweb_clock.erl +++ b/src/mochiweb_clock.erl @@ -65,7 +65,7 @@ rfc1123() -> -spec init([]) -> {ok, #state{}}. init([]) -> - ?MODULE = ets:new(?MODULE, [named_table, protected]), + ?MODULE = ets:new(?MODULE, [named_table, protected, {read_concurrency, true}]), handle_info(update_date, #state{}), timer:send_interval(1000, update_date), {ok, #state{}}.