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

Reduce weight of VersionConfiguration JSON #312

Open
RobQuincey-DC opened this issue Sep 2, 2024 · 0 comments
Open

Reduce weight of VersionConfiguration JSON #312

RobQuincey-DC opened this issue Sep 2, 2024 · 0 comments
Labels
enhancement New feature or request performance Performance related enhancements or issues

Comments

@RobQuincey-DC
Copy link
Contributor

The VersionConfiguration JSON payload contains a lot of duplicated and unecessary data. The weight of this request could be reduced by being a bit smarter with what is actually returned and how. For example:

  • Layer Source Types do not need the description included
  • Bounds do not need the description included
  • attributionHTML is probably not needed, and we could just have the renderedAttributionHTML
  • params in WMS layers should be minified before being added (lots of wasted white space at the moment)

Slightly more work would be needed for these, but they would produce significant reductions

  • Bounds within Layers are duplicated everywhere they are used. It should just be a reference
  • Attributions within Layer Sources are duplicated everywhere they are used. It should just be a reference
  • Layer Source Types within Layer Sources are duplicated everywhere they are used. It should just be a reference
  • Layer source descriptions could be requested only when they are needed
  • Info templates could be requested dynamically rather than included all at once
@RobQuincey-DC RobQuincey-DC added enhancement New feature or request performance Performance related enhancements or issues labels Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance Performance related enhancements or issues
Projects
None yet
Development

No branches or pull requests

1 participant