Quantcast
Channel: XnView Software
Viewing all articles
Browse latest Browse all 4990

Search function - possible memory leak.

$
0
0
by CameronD (Posted Wed Mar 30, 2016 1:00 pm)
XnviewMP v0.78 x64 under Windows 7 with 8GB physical RAM.

DB has about 40000 images, nearly all jpeg.
XnView.db is 308MB in size.

I operate with IPTC and XMP duplicated as much as possible.
DB categories should match between categories, IPTC:keywords and XMP:Subject.
I have 71 images with "butterfly" as a category/keyword.

Start XnViewMP.
Memory allocated is around 50MB (I display working set, peak working set and private working set and for these tests they are all approximately the same as each other)
I search from a top folder, use catalog, recursive.
search IPTC:Caption contains: "butterfl"
After a few seconds if lists all entries, and all memory values read ~ 110MB

search IPTC:keyword contains: "butterfl"
After a few seconds if lists all 71 entries, and all memory values remain at ~ 110MB

Shut down and restart XnViewMP.
using the same search options,
search XMP:description contains: "butterfl"
After several minutes it lists the same files as during the IPTC:caption search, and memory used is shown as around 400MB.
The memory use increased steadily during the search duration, with lots of page faults per second.

search XMP:Subject contains: "butterfl"
Again it takes several minutes, produces the correct list of files, but now memory has increased by another 400MB.

If I do not use catalog, then the search takes perhaps a bit longer, but more importantly the memory consumed is only half that when I use the DB.
If I repeat the search (without even exiting the search dialog box) the memory used keeps incrementing by the same amount each time.

Read Main Topic

Viewing all articles
Browse latest Browse all 4990

Trending Articles