few ideas #1044
-
as i understand, all of your code runs on core 0. and Arduino runs everything on core 0 too. including all of WIFI codes and other libs. if possible, it is best to run some demanding codes on core 1. all esp32 (except c3-c6) are dual core, so why not use it? and esp32c3 is not going to be very good at it. but you can also add the changes for both of them. you are already have this section for setting different micro's , so why not adding core number to it too? for example, in file: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
That's not correct: The Arduino loop runs on core 1 and all the networking is running on core 0. URL_STREAM_CORE is only used by URLStreamBuffered which is usually not needed because the regular implementation is fast enough and I therefore do not even have any examples for it. |
Beta Was this translation helpful? Give feedback.
-
in |
Beta Was this translation helpful? Give feedback.
-
in file
because esp32 or ARM's in general are really stupid (like their designers!) and don't have many simple calculations, like min max div or even minus (-) !! , this will be alot faster? and maybe ... maybe (!!) don't use int ??!! and only use uint32_t or uint16_t for things that dont have negative numbers? it would be faster! who knows? not me! i don't know! |
Beta Was this translation helpful? Give feedback.
That's not correct: The Arduino loop runs on core 1 and all the networking is running on core 0.
checkMemory is only executed (added to the code) when USE_CHECK_MEMORY is set to true: By default this is off.
URL_STREAM_CORE is only used by URLStreamBuffered which is usually not needed because the regular implementation is fast enough and I therefore do not even have any examples for it.