Commit Graph
3 Commits
Author SHA1 Message Date
Marc RousavyandGitHub 039ded3b33 fix: Remove primitive array copy in Swift and deprecate FastVectorCopy(...) (#979) 2025-10-22 18:58:31 +02:00
Marc RousavyandGitHub 6dbb34f9d3 fix: Add NON_NULL, NULLABLE and CONTIGUOUS_MEMORY annotations on pointers (#902)
* chore: Add `NON_NULL` and `NULLABLE` annotations on all pointers

* feat: Add `CONTIGUOUS_MEMORY` and `NON_NULL`

* Create `InstanceMethod<...>`

* chore: Use `InstanceMethod<...>`
2025-09-26 13:45:54 +02:00
Marc RousavyandGitHub 03e4c5098c perf: Allow fast path for primitively copyable arrays (#867)
* perf: Allow fast path for primitively copyable arrays

* feat: Better fast copy to Swift

* idk if this makes a difference tbh

* More readable

* fix: Use `std::span` to make it safer

* fix: Allow fast path for simple `memcpy`

* Update NitroTest-Swift-Cxx-Bridge.hpp

* feat: Move to `FastVectorCopy`

* fix: Just check if `needsSpecialHandling`

* chore: Lint C++

* fix: Name prefixes

* fix: Replace `reserve` with alloc
2025-09-24 12:22:08 +02:00