Skip to content

perf: convert Symbol enum into struct#3

Merged
PaoloProdossimoLopes merged 1 commit into
developfrom
perf/symbols
May 16, 2025
Merged

perf: convert Symbol enum into struct#3
PaoloProdossimoLopes merged 1 commit into
developfrom
perf/symbols

Conversation

@PaoloProdossimoLopes

Copy link
Copy Markdown
Contributor

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

This PR refactors the Symbol representation from a large enum to a struct, improving build times and modularity.

What's Changed:

  • Replaced enum Symbol with @Frozen struct Symbol.
  • Grouped symbols into extensions, with a maximum of 600 per file.
  • Added detailed documentation with SF Symbol icons.
  • Implemented allCases support to list all symbols.

Benefits:

  • Faster build times.
  • Cleaner and more maintainable structure.
  • Full documentation for each symbol, with icons.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Evidence

Please ignore is not relevant.

this object was converted into  because was taking to much time to compile
and causes a lot of stucks during the development process.

Converting to new type, now, there are a new possibility to separate into many file

This separation optimize the index and reduce the time to run tests/compile/indexing
@PaoloProdossimoLopes PaoloProdossimoLopes changed the title ♻️ convert from into perf: convert Symbol enum into struct May 16, 2025
@PaoloProdossimoLopes PaoloProdossimoLopes merged commit 9d88528 into develop May 16, 2025
4 of 5 checks passed
@PaoloProdossimoLopes PaoloProdossimoLopes self-assigned this May 16, 2025
@PaoloProdossimoLopes PaoloProdossimoLopes deleted the perf/symbols branch May 16, 2025 14:47
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