Efficiency with very long strings
myrosia Member Myroslava DzikovskaOrganization: University of EdinburghProject: tutorial dialogue system ✭✭
in Help Center
I have a general efficiency question as I am thinking through my interfaces. In the process of developing my application I will be likely passing around very long strings (for example, a detailed parse tree for a 15-word sentence -- this can easily be 15,000 characters). These are represented in C++ as std::string. I am wondering how much copying would be going on, if it is likely to affect efficiency of my interfaces, and if I should plan ahead of time to do something about it.