IMatch Freeze in Viewer

Started by meyersoft, July 11, 2014, 08:23:18 AM

Previous topic - Next topic

meyersoft

I have freezes, too, when sending files to the viewer.
Imatch becomes unresponsive for a VERY long time (sometimes 'only' 10 secs, sometimes several minutes) before displaying the first image or when forwarding to the next.
Database is on SSD, images on normal HD, database optimized daily.
Attachedd is a logfile.
Any chance to speed things up?

[attachment deleted by admin]

Mario

#1
Please don't 'hijack' other bug reports. IMatch being slow when starting is totally unrelated to slow performance when starting the Viewer. If you just append your report to a totally unrelated bug report I cannot process each bug separately in my system and this causes extra work.

You send files to the Viewer from which View in IMatch?
Is see that IMatch is extremely busy processing regular expressions in relation to categories. Every call to this takes over 5 seconds, and there are many of those. Do you use category formulas with regular expressions? It seems that you have one or more of these, and IMatch is forced to re-process them very often, e,g, while starting the Viewer...

From the 10 seconds the Viewer needs to launch, 9 seconds are used to re-calculate the regular expression categories and to retrieve Attribute data...
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

meyersoft

Well, I think I use some category formulas, but don't remember regular expressions.
I will check tomorrow.

meyersoft

Okay, I checked the category formulas - they are attached.
Nothing special, I think.
I exported them and then deleted them for test.
I think the speed became a little bit faster now, but not really good.
I also disabled the auto-update of the data driven categories.

For reference, i also attached a newer logfile.
Just to make sure my categories are okay, I added an export of all my remaining categories, too.

Any thoughts ?


[attachment deleted by admin]

Mario

This log file still shows many calls to category formulas (search for RegExGroup). Not much of a change here.

Also, loading files from the cache is quite slow, between 1 and 6 (!) seconds per file. For example, almost 6 seconds to load this file:

d:\SaulDocs\Image Library\EOS_60D\2014\2014_06_08\20140608_8796.JPG

Is D: a local disk or a network share? Maybe a virus checker interfering?
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

meyersoft

Hmm, I have searched my category formula export for "RegExGroup" and "RegEx", but did not find any occurences.
Where else could category formulas come from?

D: is a local disk (HDD), while the library is on C:, an SSD.
The disk is a notebook HDD, not extremely fast, but okay.
No problems with other applications.
Virus checker is Avira free - also no problems until now.

Can the WIC codec be a problem?
I have installed the FastPictureViewer Codec pack.
A WIC codec log file is attached.

[attachment deleted by admin]

meyersoft

This morning, without the category formulas (see attachment 3 posts ago), imatch seems to be much faster (see new log).
What can be the reason - these few simple formulas?

[attachment deleted by admin]

Mario

QuoteThe disk is a notebook HDD, not extremely fast, but okay.
No problems with other applications.
There is no problem. Just IMatch needs 6 seconds to load a JPEG file, something that is usually done in about 0.5 to 1.0 seconds for a, say, 12 MP file. The Viewer loads the files in the background, but has to load a few up-front. And when the problem report is "Viewer slow to open", the reason is that it takes so long to load the files.  Plus the time to perform color management once the file has been loaded.

IMatch does not use WIC codecs to load JPEG files, the internal reference JPEG decoder is much faster.

When you use formulas containing @Cat... (e.g. @CatDistinct] you are using regular expressions. In your case, the category David allein CatDistinct... uses a @CatDistinct formula, and this formula function expects a regular expression. In your database, IMatch needs 5 seconds to find all matches. IMatch then caches this result and does not run the regexp again, until something changes in the database which invalidates the categories (adding files, removing files, changing category assignments etc.)
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook