dic_nodes_cache.cpp revision 5a0381f7d00abf97f5792958420dbb8535977ab3
1/*
2 * Copyright (C) 2012 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include <list>
18
19#include "defines.h"
20#include "suggest/core/dicnode/dic_node_priority_queue.h"
21#include "suggest/core/dicnode/dic_node_utils.h"
22#include "suggest/core/dicnode/dic_nodes_cache.h"
23
24namespace latinime {
25
26// The biggest value among MAX_CACHE_DIC_NODE_SIZE, MAX_CACHE_DIC_NODE_SIZE_FOR_SINGLE_POINT, ...
27const int DicNodesCache::LARGE_PRIORITY_QUEUE_CAPACITY = 310;
28// Capacity for reducing memory footprint.
29const int DicNodesCache::SMALL_PRIORITY_QUEUE_CAPACITY = 100;
30
31}  // namespace latinime
32