Sakhabaev Egor

Results 43 comments of Sakhabaev Egor

> Have you tried stripping the binary? I have `bitcode`, `Strip linked product`, `Dead code Stripping` enabled. I've tried enable `Strip debug symbols during copy` for main target and app...

> Thanks @Banck. Can you run the [`analyze_code_size.py` script from Swift](https://raw.githubusercontent.com/apple/swift/main/utils/analyze_code_size.py) against your app clip and provide the output here? The invocation is probably something like: `analyze_code_size.py -categorize `. 1)...

> Hah, sorry, can you remove the symbol stripping before you do this? That data is not all that useful without the symbols, as all we can tell is that...

> I also want to point out [apple/swift-protobuf#1204](https://github.com/apple/swift-protobuf/issues/1204). When I wrote the first message, I measured app size, then integrated grpc with 1 simple proto file, and measured again. The...

> Is it possible for you to compare with only the impact from swift-protobuf? I'd like to isolate how much is grpc-swift. Keep your `.proto` files the same, but don't...

And sure, only with SwiftProtobuf: App size: 2,1 MB compressed, 4,3 MB uncompressed

Yes, I do import NIO and import NIOCore in my services, because grpc returns EventLoopFuture and I working with it, which is part of swiftNIO.

> For my own future reference: > > * Protobuf only: 2.1 MB compressed, 4.3 MB uncompressed > * Protobuf, NIO, NIOHTTP2, Logging: 3.1 MB compressed, 7.1 MB uncompressed >...

I've noticed, that through SPM I can install grpc without swift-nio-ssl, cause Package.swift contains: ``` let includeNIOSSL = ProcessInfo.processInfo.environment["GRPC_NO_NIO_SSL"] == nil .package( url: "https://github.com/apple/swift-nio-ssl.git", from: "2.14.0" ), if: includeNIOSSL ```...

Seems it's the same issue, which I had before: https://github.com/grpc/grpc-swift/issues/1341 We resolved it for now by creating new ClientConnection for every new requests