Skip to content

MapDataStoreLabelStore: Return more labels without reading all the data - #1636

Closed
Sublimis wants to merge 2 commits into
mapsforge:masterfrom
Sublimis:direct-labels-fix-1
Closed

Sublimis wants to merge 2 commits into
mapsforge:masterfrom
Sublimis:direct-labels-fix-1

Conversation

@Sublimis

Copy link
Copy Markdown
Contributor

Quick performance fix for #1633 until a better solution is found (if needed).

image image

@Sublimis

Copy link
Copy Markdown
Contributor Author

Any suggestions on how to fix the checks?

*/
public boolean wayAsLabelTagFilter(List<Tag> tags) {
return false;
return !tags.isEmpty();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sublimis This seems to change the default behavior for all implementations.

This hook is intended to be overridden by the required implementations only, if needed (details here).

@devemux86

Copy link
Copy Markdown
Collaborator

Any suggestions on how to fix the checks?

@Sublimis Check the error message Execution failed for task ':mapsforge-map-reader:test'.

As mentioned above this changes library's default behavior, so it cannot be the default.

@devemux86

Copy link
Copy Markdown
Collaborator

See #1637

@Sublimis

Copy link
Copy Markdown
Contributor Author

The test should probably be adjusted to the fact that labels are not just name tags, but also symbols, etc.

@devemux86

Copy link
Copy Markdown
Collaborator

The test should probably be adjusted to the fact that labels are not just name tags, but also symbols, etc.

Labels were defined as data with names. We can not change easily the default public implementation.
That's why the hook was added. Or we need a new Selector to cover more cases.

@devemux86

Copy link
Copy Markdown
Collaborator

@Sublimis We can close this?

@Sublimis

Copy link
Copy Markdown
Contributor Author

@Sublimis We can close this?

Actually yes, performance will be improved in a different way.

@devemux86 devemux86 closed this Jan 25, 2025
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.

2 participants