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

Replace long[] arrays by a TileIndex abstraction #1314

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Aug 27, 2024

  1. Replace long[] arrays by a TileIndex abstraction

    Dealing with `long[]` everywhere and knowing it means `{x,y,z}` is
    tiring.
    
    Introducing a `TileIndex` abstraction improves the semantics, and at the
    same time allows to save memory on TileObject by storing the
    coordinates as internal long,long,int fields and saving the object
    reference to a `long` array.
    
    ---
    
    > This is a **proposal**. Can we please stop using `long[]` everywhere?
    > If accepted, there would be more places to get rid of `long` arrays
    > and introduce higher level abstractions (e.g. `TileRangeInterator`)
    groldan committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    27e5d87 View commit details
    Browse the repository at this point in the history