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

Conversation

groldan
Copy link
Member

@groldan groldan commented Aug 26, 2024

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)

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`)
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.

1 participant