INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: view performance observation: expected or problem? other tips?  (Read 368 times)

comox

  • Galactic Citizen
  • ****
  • Posts: 402

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)?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41940
  • Shoes gone again!
Re: view performance observation: expected or problem? other tips?
« Reply #1 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.
Logged
Matt Ashland, JRiver Media Center

comox

  • Galactic Citizen
  • ****
  • Posts: 402
Re: view performance observation: expected or problem? other tips?
« Reply #2 on: March 21, 2023, 02:11:15 pm »

Thank you. I'll try it and will report back.
Logged

comox

  • Galactic Citizen
  • ****
  • Posts: 402
Re: view performance observation: expected or problem? other tips?
« Reply #3 on: March 21, 2023, 02:40:43 pm »

Matt, is there any performance advantage between data type String and List (semicolon delimited)?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41940
  • Shoes gone again!
Re: view performance observation: expected or problem? other tips?
« Reply #4 on: March 21, 2023, 02:48:04 pm »

Both should be fast.  Use list if needed.
Logged
Matt Ashland, JRiver Media Center

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2376
Re: view performance observation: expected or problem? other tips?
« Reply #5 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.
Logged

comox

  • Galactic Citizen
  • ****
  • Posts: 402
Re: view performance observation: expected or problem? other tips?
« Reply #6 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.
Logged
Pages: [1]   Go Up