Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USE_POINT_Z_M default on #5456

Closed
wants to merge 2 commits into from
Closed

Conversation

DDanielH
Copy link

@DDanielH DDanielH commented Jul 5, 2017

Performance difference between on and off is minimal

Performance difference between on and off is minimal
@bjoernboldt
Copy link
Contributor

If you change the code to "on" as default, you should change the comment too.
From # It's OFF by default. to # It's ON by default.

@DDanielH
Copy link
Author

Sorry, i forgot

@jmckenna
Copy link
Member

@DDanielH could you create this pull request to mapserver:master instead of branch-7-0 ? (because this changes the functionality of MapServer, it will have to be applied to the 7.2 release)

@geographika
Copy link
Member

Can anyone provide any information on why in CMakeLists there is the following comment?

option(WITH_POINT_Z_M "include Z and M coordinates in point structure (advanced, not recommended)" OFF)

Is this recommendation now out of date? What were the issues in using it?
The comment was added during the migration from autotools to cmake 6 years ago.

@sdlime
Copy link
Member

sdlime commented Oct 11, 2018 via email

@msmitherdc
Copy link
Contributor

msmitherdc commented Oct 11, 2018 via email

@geographika
Copy link
Member

@sdlime - The Windows builds at GIS Internals don't have this option set - which then throws errors in various tests when using Python MapScript built with USE_POINT_Z_M ON (which is why it would be good to set this to ON by default if it is stable).

@juliensam
Copy link
Contributor

Note that this switch was added a long time ago because having a point structure of 2 int instead of 4 int meant it was better handled in memory and made a "significant" performance improvement. See details here: https://trac.osgeo.org/mapserver/ticket/1244

It was a time of custom build and it was assumed that people were compiling a lot. This is not the case anymore and it is really possible that the performance "improvement" is not even true anymore. We could set this switch to ON by default or even remove the switch altogether if that is the case.

@geographika
Copy link
Member

@juliensam - thanks for the info. It sounds like at least the CMake warning can be removed, and then possibly set it to ON by default?

This pull request however modifies nmake.opt - which as I understand it is redundant, and so a new pull request should be made and this one closed?

geographika added a commit that referenced this pull request Feb 27, 2019
geographika added a commit to geographika/mapserver that referenced this pull request Feb 27, 2019
@geographika
Copy link
Member

I think this can be closed - nmake is no longer used since the switch to CMake.
Perhaps the nmake.opt file should be removed completely to avoid confusion?

@rouault
Copy link
Contributor

rouault commented Feb 27, 2020

Perhaps the nmake.opt file should be removed completely to avoid confusion?

yes, feel free to submit a PR removing it. I'm supportive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants