Skip to content

Conversation

@mustiikhalil
Copy link
Collaborator

  • Moves capacity from storage to _internalbuffer and buffer implementations in both Flexbuffers and Flatbuffers to avoid extra unexpected reference counts.
  • Uses overflow operators in places that missed using them.

@github-actions github-actions bot added the swift label Jul 26, 2025
@mustiikhalil mustiikhalil force-pushed the moves-var-capacity-to-buffer-instead-of-storage branch from c685dd1 to 18fc02f Compare July 26, 2025 19:26
@mustiikhalil mustiikhalil self-assigned this Jul 26, 2025
@mustiikhalil mustiikhalil requested a review from aardappel July 26, 2025 19:27
Moves capacity into the internal buffer instead of storing it within the class

Cleans up capacity usage within the lib, and uses overflow operators
@mustiikhalil mustiikhalil force-pushed the moves-var-capacity-to-buffer-instead-of-storage branch from 18fc02f to 2de3f77 Compare July 26, 2025 19:34
@mustiikhalil
Copy link
Collaborator Author

@aardappel a quick tiny for reference counting within swift access to the capacity variable.

@mustiikhalil mustiikhalil enabled auto-merge (squash) July 26, 2025 19:41
@mustiikhalil mustiikhalil merged commit 575d616 into google:master Jul 29, 2025
50 checks passed
dongjoon-hyun added a commit to apache/spark-connect-swift that referenced this pull request Oct 28, 2025
### What changes were proposed in this pull request?

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

### Why are the changes needed?

To bring the latest bug fixes and improvements like `Windows` support.
- https://github.com/google/flatbuffers/releases/tag/v25.9.23 (2025-09-23)
  - google/flatbuffers#8484
  - google/flatbuffers#8577
  - google/flatbuffers#8622
  - google/flatbuffers#8637
  - google/flatbuffers#8643
  - google/flatbuffers#8650
  - google/flatbuffers#8649
  - google/flatbuffers#8702

### 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?

No.

Closes #254 from dongjoon-hyun/SPARK-54045.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
@mustiikhalil mustiikhalil deleted the moves-var-capacity-to-buffer-instead-of-storage branch November 14, 2025 23:37
@mustiikhalil mustiikhalil restored the moves-var-capacity-to-buffer-instead-of-storage branch November 14, 2025 23:37
@mustiikhalil mustiikhalil deleted the moves-var-capacity-to-buffer-instead-of-storage branch November 14, 2025 23:37
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