Skip to content

Commit 57234f8

Browse files
authored
Merge pull request #70451 from Azoy/read-keypath-optimization
[stdlib] Performance improvements for reading keypaths
2 parents 1e7a1d9 + f38e84c commit 57234f8

File tree

5 files changed

+451
-209
lines changed

5 files changed

+451
-209
lines changed

stdlib/public/SwiftShims/swift/shims/KeyPath.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ static const __swift_uint32_t _SwiftKeyPathBufferHeader_TrivialFlag
3232
= 0x80000000U;
3333
static const __swift_uint32_t _SwiftKeyPathBufferHeader_HasReferencePrefixFlag
3434
= 0x40000000U;
35+
static const __swift_uint32_t _SwiftKeyPathBufferHeader_IsSingleComponentFlag
36+
= 0x20000000U;
3537
static const __swift_uint32_t _SwiftKeyPathBufferHeader_ReservedMask
36-
= 0x3F000000U;
38+
= 0x1F000000U;
3739

3840
// Bitfields for a key path component header.
3941

0 commit comments

Comments
 (0)