rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Chris Harris on June 10, 2016, 01:36:37 AM

Title: HFS very slow response on some clients
Post by: Chris Harris 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
Title: Re: HFS very slow response on some clients
Post by: bmartino1 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
Title: Re: HFS very slow response on some clients
Post by: Chris Harris 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
Title: Re: HFS very slow response on some clients
Post by: dj 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
Title: Re: HFS very slow response on some clients
Post by: Chris Harris 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
Title: Re: HFS very slow response on some clients
Post by: LeoNeeson on June 12, 2016, 06:15:22 AM
It's seems this was discussed over here (http://www.rejetto.com/forum/programmers-corner/pagination-macro/) in 2010, and they were describing the same "lag" problem. As far I know, they didn't found a solution to this.
Title: Re: HFS very slow response on some clients
Post by: rejetto on June 13, 2016, 09:00:21 PM
where can i see this template?
Title: Re: HFS very slow response on some clients
Post by: dj on June 14, 2016, 04:20:21 AM
the mobil-light template is here http://www.rejetto.com/forum/html-templates/file-upload-with-drag-and-drop/msg1061004/#msg1061004 and the thread http://www.rejetto.com/forum/html-templates/responsive-small-screen-template/
Title: Re: HFS very slow response on some clients
Post by: rejetto on June 19, 2016, 05:52:13 PM
ugh, i tried to look at the source but it's hard to read, sorry
Title: Re: HFS very slow response on some clients
Post by: dj on June 19, 2016, 07:16:42 PM
the template without pictureviewer

http://www.rejetto.com/forum/html-templates/responsive-small-screen-template/msg1061428/#msg1061428
Title: Re: HFS very slow response on some clients
Post by: rejetto 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.