Skip to content

Comments

Pre-generate celltype lookup tables to fix LTO compile time regression#5699

Draft
Goubermouche wants to merge 4 commits intomainfrom
nella/fast-celltypes
Draft

Pre-generate celltype lookup tables to fix LTO compile time regression#5699
Goubermouche wants to merge 4 commits intomainfrom
nella/fast-celltypes

Conversation

@Goubermouche
Copy link
Contributor

#5512 implements constexpr lookups for celltype associated calls, leading to ~10% perf increase in some instances, but produces drastically longer compile times with LTO enabled. This PR aims to remedy the compile time issue while retaining the runtime performance increase.

This implementation relies on a generator script (misc/gen_celltypes.py) to generate lookup tables once, instead of for every unit. Using this impl I achieve similar runtime characteristic as the original PR, with no visible compile time tradeoffs.

TODO:

  • Unit tests to verify new celltypes match the old implementation.

[sc-275]

@Goubermouche
Copy link
Contributor Author

Going to get started on unit testing...

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