mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-06 17:00:13 +00:00
Try more changes
This commit is contained in:
parent
eb2b7c83a3
commit
6c156aa001
@ -106,8 +106,7 @@ class BazelCommandLine:
|
|||||||
# 1. resolves issues with the linker caused by the swift-objc mixing.
|
# 1. resolves issues with the linker caused by the swift-objc mixing.
|
||||||
# 2. makes the resulting binaries significantly smaller (up to 9% for this project).
|
# 2. makes the resulting binaries significantly smaller (up to 9% for this project).
|
||||||
#'--swiftcopt=-num-threads', '--swiftcopt=1',
|
#'--swiftcopt=-num-threads', '--swiftcopt=1',
|
||||||
'--swiftcopt=-j1',
|
'--swiftcopt=-num-threads', '--swiftcopt=1',
|
||||||
'--features=swift._num_threads_0_in_swiftcopts',
|
|
||||||
|
|
||||||
# Strip unsused code.
|
# Strip unsused code.
|
||||||
'--features=dead_strip',
|
'--features=dead_strip',
|
||||||
|
|||||||
@ -119,7 +119,7 @@ extension _AdaptedPostboxEncoder.UnkeyedContainer: UnkeyedEncodingContainer {
|
|||||||
} else if value is String {
|
} else if value is String {
|
||||||
try self.encode(value as! String)
|
try self.encode(value as! String)
|
||||||
} else if value is Data {
|
} else if value is Data {
|
||||||
try self.encode(value as! Data)
|
try self.encodeData(value as! Data)
|
||||||
} else if let value = value as? AdaptedPostboxEncoder.RawObjectData {
|
} else if let value = value as? AdaptedPostboxEncoder.RawObjectData {
|
||||||
let buffer = WriteBuffer()
|
let buffer = WriteBuffer()
|
||||||
|
|
||||||
@ -174,7 +174,7 @@ extension _AdaptedPostboxEncoder.UnkeyedContainer: UnkeyedEncodingContainer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private extension _AdaptedPostboxEncoder.UnkeyedContainer {
|
private extension _AdaptedPostboxEncoder.UnkeyedContainer {
|
||||||
func encode(_ value: Data) throws {
|
func encodeData(_ value: Data) throws {
|
||||||
self.items.append(.data(value))
|
self.items.append(.data(value))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user