/usr/include/stxxl/bits/containers/hash_map
NameSizeModeActions
block_cache.h184090644editdlrm
hash_map.h580300644editdlrm
iterator.h191500644editdlrm
iterator_map.h90630644editdlrm
tuning.h14070644editdlrm
util.h173920644editdlrm
Edit: /usr/include/stxxl/bits/containers/hash_map/tuning.h (1407B)
/*************************************************************************** * include/stxxl/bits/containers/hash_map/tuning.h * * Part of the STXXL. See http://stxxl.sourceforge.net * * Copyright (C) 2007 Markus Westphal * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) **************************************************************************/ #ifndef STXXL_CONTAINERS_HASH_MAP_TUNING_HEADER #define STXXL_CONTAINERS_HASH_MAP_TUNING_HEADER #define _STXXL_TUNING_H_ #include #include STXXL_BEGIN_NAMESPACE namespace hash_map { //! Tuning parameters for external memory hash map. class tuning : public singleton { friend class singleton; public: //! see buffered_reader size_t prefetch_page_size; //! see buffered_reader size_t prefetch_pages; //! see block_cache and hash_map size_t blockcache_size; private: /*! set reasonable default values for tuning params */ tuning() : prefetch_page_size(config::get_instance()->disks_number() * 2), prefetch_pages(2), blockcache_size(config::get_instance()->disks_number() * 12) { } }; } // namespace hash_map STXXL_END_NAMESPACE #endif // !STXXL_CONTAINERS_HASH_MAP_TUNING_HEADER