INTERACT FORUM

More => Old Versions => JRiver Media Center 30 for Windows => Topic started by: comox on March 21, 2023, 01:23:13 pm

Title: view performance observation: expected or problem? other tips?
Post by: comox on March 21, 2023, 01:23:13 pm
I made some changes to a view that caused a significant reduction in performance. Time to refresh the view roughly doubled from 0.5 sec to 1 sec.

My music is stored in 4 root folders:
E:\Music\
E:\Music (video)\
E:\Music (extras\
E:\Music (culls)\

My main view for playing music only wants to see the music from E:\Music\ and E:\Music (video)\.

Fast version of view uses set rules for file display:
Filename (path) does not start with E:\Music (culls)\ AND Filename (path) does not start with E:\Music (extras)\

Slow version of view uses set rules for file display:
Filename (path) starts with E:\Music\ OR Filename (path) starts with E:\Music (video)\

I'm wondering if this is expected or if it might hint at a possible optimization available to JRiver developers?

Also wondering is anyone has any other tips for optimizing view performance?

For example, would it be better for me to create a custom field to specify Music, Video, Extra, Culls and then filter on this field rather than using Filename (path)?
Title: Re: view performance observation: expected or problem? other tips?
Post by: Matt on March 21, 2023, 01:52:38 pm
For example, would it be better for me to create a custom field to specify Music, Video, Extra, Culls and then filter on this field rather than using Filename (path)?

Creating a field that already evaluated the path and has a simple string will certainly be faster.
Title: Re: view performance observation: expected or problem? other tips?
Post by: comox on March 21, 2023, 02:11:15 pm
Thank you. I'll try it and will report back.
Title: Re: view performance observation: expected or problem? other tips?
Post by: comox on March 21, 2023, 02:40:43 pm
Matt, is there any performance advantage between data type String and List (semicolon delimited)?
Title: Re: view performance observation: expected or problem? other tips?
Post by: Matt on March 21, 2023, 02:48:04 pm
Both should be fast.  Use list if needed.
Title: Re: view performance observation: expected or problem? other tips?
Post by: zybex on March 21, 2023, 05:32:06 pm
[Filename] should be faster than [Filename (path)], as the second one seems to be calculated from the first when accessed.
Title: Re: view performance observation: expected or problem? other tips?
Post by: comox on March 21, 2023, 06:58:22 pm
Confirming that filtering with a List rather than Filename (path) significantly improved the performance of my view.

Time to refresh reduced from about 0.5 sec to about 0.25 sec for 300,000 files.

As suggested, I also switched from Filename (path) to Filename for Search List filters in panes and this seems to be a little snappier.

Thanks for the help.