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

Rewrite tile expiry (management of expired tiles) #747

Merged
merged 11 commits into from
Jul 3, 2017

Commits on Apr 21, 2017

  1. Rewrite backend of tile expiry

    Expired tiles are now managed in a set containig the ID of the tiles as
    64-bit integer numbers instead of a self-written tree structure. The
    tile expiry is calculated on the maximum zoom level and all lower zoom
    levels are calculated using simple bit shifts during the output of the
    tile expiry list.
    Nakaner committed Apr 21, 2017
    Configuration menu
    Copy the full SHA
    fa2bf67 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ce84ee5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1489285 View commit details
    Browse the repository at this point in the history
  4. various minor corrections based on feedback

    * use unsigned integers
    * add additional comments
    * prevent overflows on 32-bit machines
    Nakaner committed Apr 21, 2017
    Configuration menu
    Copy the full SHA
    6e5430f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    537deea View commit details
    Browse the repository at this point in the history
  6. minor performance improvements for tile expiry

    * don't try to insert a tile if the last insertion into the set was the
    same tile
    * switch loops in output method
    Nakaner committed Apr 21, 2017
    Configuration menu
    Copy the full SHA
    cbf09da View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e515298 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    93f3fe2 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4dbc302 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8f7084f View commit details
    Browse the repository at this point in the history
  11. uint32_t for zoom level in options_t, zoom level 0 for "no tile expiry"

    The constructor of expire_tiles_t expects uint32_t and the conversion to
    unsigned has to happen anywhere. In addition, some more checks on the
    arguments supplied by the user and a unit test for option `-e` does not harm.
    
    This commit adapts output_pgsql_t and output_multi_t because zoom level 0
    for the tile expiry now means that no expiry output is requested.
    Nakaner committed Apr 21, 2017
    Configuration menu
    Copy the full SHA
    24488bf View commit details
    Browse the repository at this point in the history