I need to process the incoming predefined ASN format data(coming from verity of clients that uses B开发者_运维百科ER library to build it) in my application server. This is typically an LDAP server where every request will be in a predefined ASN format. Can i use Google's protocol buffers to process the requests in the server side? Will it help any way to improve performance of my servers request handling? Is it anyway reduce the number of malloc() calls that happens while processing ASN messages?
Thanks, Naga
I don't see how it's likely to help, to be honest. Unless you can change both the server and the client, you'll have to handle the ASN format at some point anyway - where do you think you'd get benefit from converting from one format to another?
If you have a lot of internal processing between different servers after you've received the request, then in that case it may make sense to translate from ASN to a protocol buffer format - but it sounds like you're still going to need ASN handling at the boundary.
The binary format of protobuf is not like BER encoding, you cannot use protobuf to decode those messages.
精彩评论