1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

Mass_parse: Add perf logger

This commit is contained in:
gnosygnu
2017-01-12 13:26:35 -05:00
parent 305c2f9762
commit d22c5e5f3d
6 changed files with 38 additions and 16 deletions

View File

@@ -77,9 +77,9 @@ public class Xow_cache_mgr {
wiki.Ctg__catpage_mgr().Free_mem_all();
tmpl_result_cache.Clear();
defn_cache.Free_mem_all();
misc_cache.Clear();
lst_cache.Clear();
scrib_lang_names = null;
misc_cache.Clear();
// scrib_lang_names = null;
}
private static final int Free_mem__page_tid = 0, Free_mem__wbase_tid = 1, Free_mem__all_tid = 2;
private static Keyval[] scrib_lang_names;

View File

@@ -101,12 +101,15 @@ public class Xow_page_cache {
cache.Clear();
}
else {
// gather non-permanent items
int len = cache.Count();
for (int i = 0; i < len; i++) {
Xow_page_cache_itm itm = (Xow_page_cache_itm)cache.Get_at(i);
if (!itm.Cache_permanently())
deleted.Add(itm);
}
// remove non-permanent items
len = deleted.Len();
for (int i = 0; i < len; i++) {
Xow_page_cache_itm itm = (Xow_page_cache_itm)deleted.Get_at(i);