I've read that performance-wise character arrays are better/faster than std::string. But personally I find using std::string much easier.
I'm currently writing some database APIs which will be fetching/inserting data into the database. In these APIs, I want to use std strings, but I'm not sure how much penalty in performance will I pay due to my choice. My APIs will query the database, therefore, network IO will be involved.
Is the performance penalty much lesser than the network latency(~10 ms), because in that case, I would happily like to use std::string.