Author Topic: HFS very slow response on some clients  (Read 2236 times)

0 Members and 1 Guest are viewing this topic.

Offline Chris Harris

  • Occasional poster
  • *
  • Posts: 26
    • View Profile
HFS very slow response on some clients
« on: June 10, 2016, 01:36:37 AM »
Hi
I am using HFS 2.3h build 296 on a Windows 10 machine. I have one real folder with many file/folders. The top folder has about 990 files and there are about 20,000 files in folders/I am using the mobile-light template. When accessing the server via a web address on the same machine, the response is reasonably fast (say 4 seconds). On some other devices is can be very slow. On a smartphone (Motorola Razr M) it can take 4.5 minutes to paginate and display the final screen. The server CPU stays at about 20% the whole time.

What can I do to speed up the process?

Is the pagination done on the client browser, not on the server? If so can the pagination be done on the server or can I turn off pagination?

Any other suggestions welcome.
Chris

Offline bmartino1

  • Tireless poster
  • ****
  • Posts: 893
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
Re: HFS very slow response on some clients
« Reply #1 on: June 11, 2016, 12:34:48 AM »
 using the mobile-light template....

what happens if you try it with the default template.. i'm sure it the template that causing this...

and it probably a template thing for "pagination"...

i'm not familar with that template nor how its code works...
https://dzone.com/articles/pagination-server-side-or-clie
Files i try to keep and share can be found on my google drive:

https://drive.google.com/drive/folders/1FOWi3Gqaldld6JLXvZ-biDv4RSguf0IC

Offline Chris Harris

  • Occasional poster
  • *
  • Posts: 26
    • View Profile
Re: HFS very slow response on some clients
« Reply #2 on: June 11, 2016, 04:38:46 AM »
I tested with the default template and the program was MUCH faster for the smart phone/small screen.

When using mobile-light template (hfs.diff.tpl), the time to paginate and display the final screen was many times longer ( 250 secs vs 19 secs for default).

I do like the layout of mobile-light template on all screens and the ability to turn on and off the menu block.

What can be done to speed up this template?

Regards
Chris

Offline dj

  • Tireless poster
  • ****
  • Posts: 171
  • 👣 🐾
    • View Profile
    • PWAs
Re: HFS very slow response on some clients
« Reply #3 on: June 11, 2016, 01:09:26 PM »
If you use images, but no thumbnails, you could try to replace "thumb/%item-url%" with "%item-icon%" or "" (line 4)

update: try to load the script earlier
add [box panel] before the script and the content of box panel of the hfs.tpl after the script block
« Last Edit: June 12, 2016, 07:36:00 AM by dj »

Offline Chris Harris

  • Occasional poster
  • *
  • Posts: 26
    • View Profile
Re: HFS very slow response on some clients
« Reply #4 on: June 12, 2016, 01:52:09 AM »
I tried replacing  "thumb/%item-url%" with "%item-icon%" or "" (line 4) and I found no difference.

Any other suggestions?
Chris

Offline LeoNeeson

  • Tireless poster
  • ****
  • Posts: 625
  • Still busy...
    • View Profile
    • twitter.com/LeoNeeson
Re: HFS very slow response on some clients
« Reply #5 on: June 12, 2016, 06:15:22 AM »
It's seems this was discussed over here in 2010, and they were describing the same "lag" problem. As far I know, they didn't found a solution to this.
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» All my work/posts/data anywhere on internet is on Public License!

Follow members gave a thank to your post:


Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 13016
    • View Profile
Re: HFS very slow response on some clients
« Reply #6 on: June 13, 2016, 09:00:21 PM »
where can i see this template?

Offline dj

  • Tireless poster
  • ****
  • Posts: 171
  • 👣 🐾
    • View Profile
    • PWAs
« Last Edit: June 14, 2016, 05:37:06 AM by dj »

Follow members gave a thank to your post:


Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 13016
    • View Profile
Re: HFS very slow response on some clients
« Reply #8 on: June 19, 2016, 05:52:13 PM »
ugh, i tried to look at the source but it's hard to read, sorry

Offline dj

  • Tireless poster
  • ****
  • Posts: 171
  • 👣 🐾
    • View Profile
    • PWAs
« Last Edit: June 20, 2016, 05:04:21 AM by dj »

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 13016
    • View Profile
Re: HFS very slow response on some clients
« Reply #10 on: June 20, 2016, 09:57:16 PM »
i understand there's no problem anymore, as i found the new version of the template to be much faster.

I should consider making a new mobile-friendly default template.