Skip to content

Conversation

Yu-zh
Copy link
Collaborator

@Yu-zh Yu-zh commented Aug 28, 2025

This PR optimizes makei in two aspects:

  • add #locals attribute so that it can be more aggressively inlined
  • use Array::make_uninit to allocate so that one iteration can be saved for scalar element type.

Out FFT benchmark before this optimization:
image

With this optimization:
image

@coveralls
Copy link
Collaborator

coveralls commented Aug 28, 2025

Pull Request Test Coverage Report for Build 902

Details

  • 3 of 4 (75.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.01%) to 88.738%

Changes Missing Coverage Covered Lines Changed/Added Lines %
builtin/array.mbt 3 4 75.0%
Totals Coverage Status
Change from base Build 899: -0.01%
Covered Lines: 8652
Relevant Lines: 9750

💛 - Coveralls

@bobzhang bobzhang enabled auto-merge (rebase) August 30, 2025 04:01
@bobzhang bobzhang merged commit 48db9cf into main Aug 30, 2025
11 checks passed
@bobzhang bobzhang deleted the optimize-makei branch August 30, 2025 04:02
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.

3 participants