zeromq / ingescape

Model-based framework for broker-free distributed software environments. Any language, any OS, web, cloud.
Other
61 stars 14 forks source link

model_write_iop alloc memory not only for log debug? #57

Closed rwayan closed 1 year ago

rwayan commented 1 year ago

in function "model_write_iop" there is a igsagent_debug call, prepare log_iop_value and free later, but if log level is not debug, the memory still alloc and log_iop_value and prepared for useless. Will it show down the receive processing ?

stvales commented 1 year ago

Log levels configuration (using igs_logset*_level functions) operates on console and file log outputs. Stream and syslog outputs always gather all log levels independently from the configuration. So there are high chances that the information is used. And compared to network computations involved in publishing data, the creation of the log string and even its writing are insignificant.