rejetto forum

HFS very slow response on some clients

0 Members and 1 Guest are viewing this topic.

Offline Chris Harris

  • Occasional poster
  • *
    • Posts: 38
    • View Profile
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: 911
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
 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 have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing


Offline Chris Harris

  • Occasional poster
  • *
    • Posts: 38
    • View Profile
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: 291
  • 👣 🐾
    • View Profile
    • PWAs
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: 38
    • View Profile
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: 859
  • Status: On hiatus       (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
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)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
ugh, i tried to look at the source but it's hard to read, sorry



Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
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.