terra-sync / cnc

Seamless Database Replication tool
GNU General Public License v3.0
4 stars 2 forks source link

utils: log: config: make some utility functions inline static #57

Closed charmitro closed 8 months ago

charmitro commented 8 months ago

This commit inlines several small utility functions, namely remove_spaces, get_verbose, and cnc_strdup, directly within their respective header files to potentially reduce function call overhead and improve performance. By making these functions inline, we hint to the compiler that it should attempt to embed these functions directly at the call site, which can lead to faster execution for these frequently used utilities.