Re: [Cppcms-users] [Feature request]Returnning pointers to, not instances of, map/multimap
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2011-04-22 12:21:43
|
> >From: "cn...@gr..." <cn...@gr...> >To: cpp...@li... >Sent: Fri, April 22, 2011 12:59:42 PM >Subject: [Cppcms-users] [Feature request]Returnning pointers to, not instances >of, map/multimap > >Hello! Artym, > > > >Cppcms' performance might be boosted if methods returning map or multimap like > >http::request()::get() >http::request()::post() >http::request()::cookies() All of them returning const reference and not actual value, so there is no data coping. See: http://cppcms.sourceforge.net/cppcms_ref_v0_99/classcppcms_1_1http_1_1request.html >and http::request()::getenv() > Ok it seems that I mistakenly provided return by value. I think it should be fixable. > >Please pardon me if this is a bad request. > Artyom |