-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
threaded=True is slow #46
Comments
Hello and sorry for my very late answer! |
microWebSrv uses just one synchronous pipe-line (threaded or not) and more for websockets connections. |
Thank you for your nice work. Same issue here, it takes 3 seconds to respond with very simple http server (same with #42). I can confirm it works with "mws.Start(threaded=False)" Suggestion: Thanks, |
Ok thanks. |
So, I have removed the thread allocation testing : |
Sorry, I was using Lyrat which has psRAM, but running normal micro-python. It seems there are some issues for normal micro-python on Lyrat (with psRAM) and there is a special version for it. Whatever, my actual intention is to use esp32 WROOM (without psRAM), on this board, it seems OK with or without threads, I'll focus on this board and test further. Thanks, |
@jczic some updates, please take a look at micropython/micropython#4372 Now I focus on esp32 WROOM (no psRAM) module and take some careful tests. |
Hello @gengshenghong, some news about this problem with readline IO ? |
Hello,
I released a fully new version (v2.0) of my web server here :
github.com/jczic/MicroWebSrv2.
Open source MIT, fully asynchronous, more robust, more fast and more
efficient!
It is delivered with a good documentation.
Thank you for your support and feedback.
… @jczic <https://github.com/jczic> some updates, please take a look at
micropython/micropython#4372
<micropython/micropython#4372>
Now I focus on esp32 WROOM (no psRAM) module and take some careful tests.
I got same results using MicroWebSrv for the testing. It seems like thread
behavior is strange in micropython....
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#46 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAegLFdO56AedkbLVNjgHs5gDY6NlE_Bks5u7JCXgaJpZM4X-R9z>
.
--
*Sincèrement,*
|
Hi
I use your great module for my nodemcu-32s v1.1 board, micropython version 1.9.4, everything looks fine, but when I start webserver with threaded=True, the response is slow, about 4s, however it's ~200ms when threaded mode is False.
I have no idea why this happens, my micropython is clean, no other modules and I use IP to connect the device, so it seems not an DNS issue, could you give me some hints about this?
Thanks a lot.
-Silver
The text was updated successfully, but these errors were encountered: