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

ol.TileCoord.getKeyZXY optimization #1037

Merged
merged 2 commits into from Sep 18, 2013
Merged

ol.TileCoord.getKeyZXY optimization #1037

merged 2 commits into from Sep 18, 2013

Conversation

fredj
Copy link
Member

@fredj fredj commented Sep 18, 2013

Optimize the ol.TileCoord.getKeyZXY function by removing the local array creation and by using string concatenation instead of array.join.

See http://jsperf.com/array-join-string-concat/2 for a comparaison between array join and string concat.

@twpayne
Copy link
Contributor

twpayne commented Sep 18, 2013

+1

1 similar comment
@elemoine
Copy link
Member

+1

fredj added a commit that referenced this pull request Sep 18, 2013
ol.TileCoord.getKeyZXY optimization
@fredj fredj merged commit 8a97535 into openlayers:master Sep 18, 2013
@fredj fredj deleted the perf branch September 18, 2013 16:16
@elemoine elemoine changed the title ol.TileCoord.getKeyZXY optimization ol.TileCoord.getKeyZXY optimization Nov 8, 2014
afabiani pushed a commit to geosolutions-it/openlayers that referenced this pull request Nov 7, 2017
Typos: "colums" -> "columns", "exceess" -> "excess"
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

3 participants