In esp32-hal-log, direct calls to ESP_LOG_x macros is more efficient …#5081
In esp32-hal-log, direct calls to ESP_LOG_x macros is more efficient …#5081me-no-dev merged 1 commit intoespressif:masterfrom
Conversation
…than using intermediate function log_to_esp As indicated in espressif#4845 (comment) it is more efficient to call directly the ESP LOG macros. This spares a function call, a 512b buffer and a call to vsnprintf. No change in functionality.
|
thanks :) |
|
Hi, thanks for addressing this. I found a couple of issues
[Note: it seems to have been right at the time of PR but somehow broken afterwards]
Example code flow: This results in the following error If the esp_log_set_vprintf() line is commented out then the logs work via serial normally (if point 1. above is fixed first) |
…than using intermediate function log_to_esp
As indicated in #4845 (comment)_ it is more efficient to call directly the ESP LOG macros. This spares a function call, a 512b buffer and a call to vsnprintf. No change in functionality.