Lines Matching full:cache
48 cache_filename = "register-cache.pkl"
55 * epan/dissectors/register-cache.pkl.
58 * it along with epan/dissectors/register-cache.pkl.
114 # Open our registration symbol cache
115 cache = None variable
119 cache = pickle.load(cache_file) variable
121 if VERSION_KEY not in cache or cache[VERSION_KEY] != CUR_VERSION:
122 cache = {VERSION_KEY: CUR_VERSION} variable
124 cache = {VERSION_KEY: CUR_VERSION} variable
126 print(("Registering %d files, %d cached" % (len(filenames), len(list(cache.keys()))-1)))
134 if cache and filename in cache:
135 cdict = cache[filename]
138 # print "Pulling %s from cache" % (filename)
144 # We don't have a cache entry
145 if cache is not None:
147 cache[filename] = {
162 if cache is not None:
164 cache[filename][sym_type].append(symbol)
168 if cache is not None and cache_filename is not None:
170 pickle.dump(cache, cache_file)
172 print(("Cache hits: %d, misses: %d" % (cache_hits, cache_misses)))