Skip to content

[Swift] Improves the performance creating strings - #8772

Merged
aardappel merged 1 commit into
google:masterfrom
mustiikhalil:mmk/improved-string-performance
Nov 14, 2025
Merged

aardappel merged 1 commit into
google:masterfrom
mustiikhalil:mmk/improved-string-performance

Conversation

@mustiikhalil

@mustiikhalil mustiikhalil commented Nov 11, 2025 •

Copy link
Copy Markdown
Collaborator

Improves the performance of the implementation in Swift by using withCString instead of the withContiguousStorageIfAvailable. We already use the withCString in the FlexBuffers implementation. So adding it to FlatBuffers was a no-brainer.

Improves the performance of the implementation in Swift
by using withCString instead of the contigiousString
@github-actions github-actions Bot added the swift label Nov 11, 2025
@aardappel
aardappel merged commit a62f45f into google:master Nov 14, 2025
@mustiikhalil
mustiikhalil deleted the mmk/improved-string-performance branch November 14, 2025 23:09
TJKoury pushed a commit to DigitalArsenal/flatbuffers that referenced this pull request Nov 19, 2025
Improves the performance of the implementation in Swift
by using withCString instead of the contigiousString
dongjoon-hyun added a commit to apache/spark-connect-swift that referenced this pull request Jan 5, 2026
### What changes were proposed in this pull request?

This PR aims to upgrade `FlatBuffers` to `v25.12.19`

### Why are the changes needed?

To bring the latest bug fixes and improvements
- https://github.com/google/flatbuffers/releases/tag/v25.12.19 (2025-12-19)
  - google/flatbuffers#8758
  - google/flatbuffers#8772
  - google/flatbuffers#8755
  - google/flatbuffers#8815
  - google/flatbuffers#8752
  - google/flatbuffers#8742

### Does this PR introduce _any_ user-facing change?

No. There is no behavior change.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

Yes (`Gemini 3 Pro` on `Antigravity`)

Closes #275 from dongjoon-hyun/SPARK-54899.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
TJKoury pushed a commit to DigitalArsenal/flatbuffers that referenced this pull request Jan 21, 2026
Improves the performance of the implementation in Swift
by using withCString instead of the contigiousString
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants