Skip to content

Conversation

ccshan
Copy link

@ccshan ccshan commented May 7, 2023

Call unsqueeze and permute ahead of time in LookupInfo.view, then just index into the result in view_lookup instead of lookup

This speeds up https://github.com/diprism/fggs/blob/main/test/test_sum_product.py by ~10%

Chung-chieh Shan added 2 commits May 7, 2023 00:32
Call `unsqueeze` and `permute` ahead of time in `LookupInfo.view`,
then just index into the result in `view_lookup` instead of `lookup`

This speeds up https://github.com/diprism/fggs/blob/main/test/test_sum_product.py by ~10%
@bdusell
Copy link
Owner

bdusell commented May 13, 2023

Thanks! I'll take a look and try to get this merged soon.

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.

2 participants