diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-04-16 15:29:10 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-04-16 15:29:10 +0300 |
commit | 78dba217bfb28c040b2a8a8afc0879f18ed27c6b (patch) | |
tree | ecac4511a2c27a86749a8afd51710ff596dc4409 /src/ejabberd_options.erl | |
parent | Default config file should be ejabberd.yml (diff) |
Speedup configuration options lookup
We now avoid excessive ETS lookups; instead, we use dynamically
compiled module 'ejabberd_options' keeping the configuration options
Diffstat (limited to 'src/ejabberd_options.erl')
-rw-r--r-- | src/ejabberd_options.erl | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/ejabberd_options.erl b/src/ejabberd_options.erl new file mode 100644 index 000000000..bcde437eb --- /dev/null +++ b/src/ejabberd_options.erl @@ -0,0 +1,41 @@ +%%%------------------------------------------------------------------- +%%% @author Evgeny Khramtsov <ekhramtsov@process-one.net> +%%% @doc +%%% This is a stub module which will be replaced during +%%% configuration load, see ejabberd_config:recompile_options/0. +%%% The only purpose of this file is to shut up xref/dialyzer +%%% @end +%%% Created : 16 Apr 2017 by Evgeny Khramtsov <ekhramtsov@process-one.net> +%%% +%%% +%%% ejabberd, Copyright (C) 2002-2017 ProcessOne +%%% +%%% This program is free software; you can redistribute it and/or +%%% modify it under the terms of the GNU General Public License as +%%% published by the Free Software Foundation; either version 2 of the +%%% License, or (at your option) any later version. +%%% +%%% This program is distributed in the hope that it will be useful, +%%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +%%% General Public License for more details. +%%% +%%% You should have received a copy of the GNU General Public License along +%%% with this program; if not, write to the Free Software Foundation, Inc., +%%% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +%%% +%%%------------------------------------------------------------------- +-module(ejabberd_options). + +%% API +-export([is_known/1]). + +%%%=================================================================== +%%% API +%%%=================================================================== +is_known(_) -> + false. + +%%%=================================================================== +%%% Internal functions +%%%=================================================================== |