Skip to content

Conversation

@3a4oT
Copy link
Owner

@3a4oT 3a4oT commented Nov 3, 2025

Summary

This PR implements performance optimizations using Swift 6.2 features:

  • Added consuming parameter ownership to parsing functions for reduced memory overhead
  • Fixed incorrect attribute access syntax in README documentation
  • Optimized CSS parser to use Array with reserveCapacity instead of String concatenation
  • Added consuming parameters to internal CSS translator functions

Changes

  • MemoryParser.parse(string:) now uses consuming parameter
  • parseXML/parseHTML functions use consuming parameter
  • ParsingService methods use consuming parameter
  • CSS parser refactored to avoid repeated String allocations
  • All changes validated with existing test suite (18/18 tests passing)

@3a4oT 3a4oT merged commit 9c8e5ea into main Nov 3, 2025
7 checks passed
@3a4oT 3a4oT deleted the apiImprovments branch November 3, 2025 15:55
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