[gdal-dev] Starting a discussion on style and coding guidelines

Mateusz Loskot mateusz at loskot.net
Mon May 9 12:49:52 PDT 2016


On 9 May 2016 at 18:02, Kurt Schwehr <schwehr at gmail.com> wrote:
> Sounds like we are on the right track now.  Hopefully, the proposal is
> clearer after a few more changes just now.
>
> My concern is that you seem to taking the discuss as the proposal and not
> ready the proposal as stand alone: http://goo.gl/vuA3D6

Kurt,

Point taken.

Although the proposal looks OK, I'd suggest to check what
assembler code generates your favourite C++ toolkit,
or at least measured times for

int anVals[256];
memset(anVals, 0, 256*sizeof(int));

vs

std::vector<int> oVals(256, 0);

and compare with:

std::vector<char> oVals(256, 0);

It is an interesting experiment.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net


More information about the gdal-dev mailing list