Skip to content
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

response too slow #42

Closed
Singein opened this issue Aug 23, 2018 · 5 comments
Closed

response too slow #42

Singein opened this issue Aug 23, 2018 · 5 comments

Comments

@Singein
Copy link

Singein commented Aug 23, 2018

thanks for sharing this amazing project!
the average of http-responsing time is too slow, about 3 seconds.
Is there a way to optimize?

@jczic
Copy link
Owner

jczic commented Aug 26, 2018

What's your platform and how memory SDRAM have you ?

@Singein
Copy link
Author

Singein commented Aug 26, 2018

esp32 , about 128k RAM

@jczic
Copy link
Owner

jczic commented Aug 26, 2018

There are many memory allocation in the web server, 128k is can be just if you have microwebsrv (websockets? pyhtml?) + another code around.

Do you use the threaded mode or the blocking mode? 3 seconds, it's slow yes...

You can also adjust threads stack size of your micro-controller.

However, this is not due to the DNS resolving?

@jczic jczic closed this as completed Sep 7, 2018
@Singein
Copy link
Author

Singein commented Sep 7, 2018

hi,buddy, I just bought a new esp32 chip with psram. And I'm going to test it tomorrow.

@jczic
Copy link
Owner

jczic commented Sep 7, 2018

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants