Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you find yourself using formatted strings often, e.g. for logging, then it's also worth considering another approach: just dump your message and arguments to some lightly structured format, like JSON, instead. In my testing, rapidjson can produce structured JSON more quickly than even the good formatting libraries, like CppFormat, can produce a string.


That's quite a claim, can you back it up with data?


I could, but you should try it. It wasn't an interesting enough result for me to document




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: