Closed tanner0101 closed 5 years ago
This PR includes a new Codable reflection algorithm that has a couple of benefits over the old one:
ReflectionDecodable
WriteableKeyPath
KeyPath
filter(\.name.count == 2)
O(n)
O(n^2)
Unfortunately this is a breaking change, so it will have to wait until Core 4.0. Opening this now though so that the code can be preserved.
This has been added here: https://github.com/vapor/codable-kit/pull/1
This PR includes a new Codable reflection algorithm that has a couple of benefits over the old one:
ReflectionDecodable
conformance in many places (like custom structs, int-backed enums, and many primitive types).WriteableKeyPath
instead ofKeyPath
which should prevent user error (i.e.,filter(\.name.count == 2)
.O(n)
runtime. (Current isO(n^2)
)Unfortunately this is a breaking change, so it will have to wait until Core 4.0. Opening this now though so that the code can be preserved.