Skip to content

optimizations (now and future) #22

@mapsam

Description

@mapsam

This is a running list of optimizations to discuss/implement

  • dedupe based on ID in the feature if it exists
  • save a vector of data_views from vtzero once
  • use vtzero to loop through and run geometry against closest_point - add data_view to vector for usage later, and keep moving
  • convert "radius" to tile coordinates
  • work within integers instead of doubles for geometry.hpp
  • determine where to load tile buffers - probably in javascript and pass an array of buffers in?
  • get feature properties from data_views once loop is finished (currently saved as variants until part of the results object)
  • not returning specific geometry types (i.e. "only give me points")
  • how to handle "radius" across tiles? keeping the origin relative to the current tile so if you have a tile that is outside of the bounds of the origin point, the origin value increases (or goes negative) this will give distances as real numbers, rather than interpolating based on a relative origin
  • "sort during" instead of "sort after" architecture
  • bypass closest point when radius=0 and only use boost::geometry::within AND only work with polygons (open question - how to handle exact intersections of query point along lines/boundaries?)
  • non-copyable ResultsObject

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions