pinojs / quick-format-unescaped

Solves a problem with util.format
MIT License
17 stars 13 forks source link

%o %O function/strings #8

Closed davidmarkclements closed 7 years ago

davidmarkclements commented 7 years ago

this mainly improves pino-debug output, since debug supports %o and libraries like express make extensive use of it

changes have no speed hit (node 6 checked)

change:

quickLowres*100000: 268.242ms
quick*100000: 293.952ms
quickLowres*100000: 260.914ms
quick*100000: 287.245ms

master: 

quickLowres*100000: 265.964ms
quick*100000: 301.656ms
quickLowres*100000: 256.617ms
quick*100000: 298.928ms