Skip to content

Inline _isBaseCellPentagon #984

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

Open
ajfriend opened this issue Mar 9, 2025 · 0 comments
Open

Inline _isBaseCellPentagon #984

ajfriend opened this issue Mar 9, 2025 · 0 comments

Comments

@ajfriend
Copy link
Contributor

ajfriend commented Mar 9, 2025

This is a follow-up for #968

As discussed in #968, it would be nice to inline _isBaseCellPentagon for use in isValidCell (and potentially other spots in the code base).

I couldn't get this working in #968 after trying a mixture of inline and extern, so making this ticket to follow up and revisit.

Some notes:

  • maybe benchmark the array of structs vs stuct of arrays in baseCellData
ajfriend added a commit to ajfriend/h3 that referenced this issue Mar 9, 2025
ajfriend added a commit to ajfriend/h3 that referenced this issue Mar 9, 2025
ajfriend added a commit that referenced this issue Mar 10, 2025
* first real change

* just for me

* oooof clang format version thing?

* fixed clang format

* port over old new solution

* try old

* check that _isValidCell_const fails on draft PRs

* try old again

* ok, see if this passes

* bah

* everyone should like this one

* who doesn't change their mind about comment formats?

* playing

* comment text

* try inline

* do you even bench?

* confirm this works on my mac, but fails on other arch

* some timings

* timings

* temporarily adding logs used to make plots

* comment out _isValidCell_old

* fail-fast: false

* missed one!

* try defined(_M_X64)

* define some helper functions

* more helpers

* boop

* notes

* function names

* move functions around

* formatting

* benchmarks

* remove dev files

* snake to camel

* drop pos

* drop some conditionals

* intention more clear

* organize

* little nicer

* remove justfile and remove fail fast

* comment

* bench for is base cell test

* maybe working with extern

* back to isBaseCellPentagonArr

* TODO: #984

* changelog

* remove files

* remove more files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant