/
usr
/
include
/
stxxl
/
bits
/
containers
/
hash_map
/
/usr/include/stxxl/bits/containers/hash_map
mkdir
upload
Name
Size
Mode
Actions
block_cache.h
18409
0644
edit
dl
rm
hash_map.h
58030
0644
edit
dl
rm
iterator.h
19150
0644
edit
dl
rm
iterator_map.h
9063
0644
edit
dl
rm
tuning.h
1407
0644
edit
dl
rm
util.h
17392
0644
edit
dl
rm
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 <marwes@users.sourceforge.net> * * 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 <stxxl/mng> #include <stxxl/bits/singleton.h> STXXL_BEGIN_NAMESPACE namespace hash_map { //! Tuning parameters for external memory hash map. class tuning : public singleton<tuning> { friend class singleton<tuning>; 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
Save
cmd:
run