boblemaire / asyncHTTPrequest

asynchronous HTTP for ESP using ESPasyncTCP. Works like XMLHTTPrequest in JS.
GNU General Public License v3.0
65 stars 31 forks source link

Rely on copy elision instead of reserving unused memory #31

Closed sakinit closed 3 years ago

sakinit commented 3 years ago

xbuf::readstring already reserves memory to return the data.

boblemaire commented 3 years ago

Looks good. Thanks for the improvement. Wasn't aware of the elision functionality. Makes sense.