HTML SPEED PROBLEM WHEN ONE OF MULTIPLE CONNECTED CLIENTS LOSES CONNECTION

Here we can discuss about the problem found
michaelvrba72
Posts: 15
Joined: Sat Mar 02, 2024 1:32 am
Location: Ořech, Czechia
Has thanked: 33 times
Been thanked: 2 times

Re: HTML SPEED PROBLEM WHEN ONE OF MULTIPLE CONNECTED CLIENTS LOSES CONNECTION

Post by michaelvrba72 »

UNBELIEVABLE!
Ignoring the 4852 edits and changes in the editor, my WinSock problem is solved.
And if only that.
Everything around HTML and javascript works 5-10x faster than before.

annex_03.png

Used to be 16 ms test code time, now 2-3 ms (image)
Earlier time to process code and javascript 34 ms, now 4-6 ms.
I don't know how this is possible, but it will be something like "impossible now, miracles in three days"

Thank you Master Yoda - Francesco - cicciocb !!!
:) :) :) :) :) :)
You do not have the required permissions to view the files attached to this post.
User avatar
cicciocb
Site Admin
Posts: 2781
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 592 times
Been thanked: 1990 times
Contact:

Re: HTML SPEED PROBLEM WHEN ONE OF MULTIPLE CONNECTED CLIENTS LOSES CONNECTION

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Tue Jul 30, 2024 8:20 am UNBELIEVABLE!
Ignoring the 4852 edits and changes in the editor, my WinSock problem is solved.
And if only that.
Everything around HTML and javascript works 5-10x faster than before.


annex_03.png


Used to be 16 ms test code time, now 2-3 ms (image)
Earlier time to process code and javascript 34 ms, now 4-6 ms.
I don't know how this is possible, but it will be something like "impossible now, miracles in three days"

Thank you Master Yoda - Francesco - cicciocb !!!
:) :) :) :) :) :)
Yes, I optimized the code that originally came from the ESP8266 version of Annex.
I've implemented proper handling of the timeout and removed some unnecessary delays.
Now it runs much faster and is less dependent on the number of connected clients compared to before.
michaelvrba72
Posts: 15
Joined: Sat Mar 02, 2024 1:32 am
Location: Ořech, Czechia
Has thanked: 33 times
Been thanked: 2 times

Re: HTML SPEED PROBLEM WHEN ONE OF MULTIPLE CONNECTED CLIENTS LOSES CONNECTION

Post by michaelvrba72 »

I have a cheeky question.
Could the WebSocket modification be done also in the firmware for ESP8266?
:)
User avatar
cicciocb
Site Admin
Posts: 2781
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 592 times
Been thanked: 1990 times
Contact:

Re: HTML SPEED PROBLEM WHEN ONE OF MULTIPLE CONNECTED CLIENTS LOSES CONNECTION

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Wed Jul 31, 2024 3:25 pm I have a cheeky question.
Could the WebSocket modification be done also in the firmware for ESP8266?
:)
Probably the fix will not work and, as you know, the development for ESP8266 is over.
Post Reply