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

Switch a few global slices to arrays #5558

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

Jacalz
Copy link
Member

@Jacalz Jacalz commented Feb 26, 2025

Description:

Use the [...] syntax to have an array with the capacity of the number of items it has when created. This should likely allow the compiler/runtime to prove that they cannot grow and thus store them in the text section of the binary instead of allocating them on the stack.

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

Use the [...] syntax to have an array with the capacity of the number of
items it has when created. This should likely allow the compiler/runtime
to proove that it cannot grow.
@Jacalz Jacalz merged commit 0cc601e into fyne-io:develop Feb 26, 2025
10 checks passed
@Jacalz Jacalz deleted the dynamic-array-size branch February 26, 2025 16:12
@coveralls
Copy link

Coverage Status

coverage: 62.369% (+0.02%) from 62.349%
when pulling 7108d38 on Jacalz:dynamic-array-size
into cbb0fd3 on fyne-io:develop.

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