ndsev / zserio

zero sugar, zero fat, zero serialization overhead
https://zserio.org/
BSD 3-Clause "New" or "Revised" License
108 stars 27 forks source link

Are there plans to support smaller generated code? #664

Open iamjustadd opened 2 days ago

iamjustadd commented 2 days ago

Hi team,

Im now suffering from big size of generated code, actually most code are not useful for me in my client side.

  1. Exception: as I used crc check after received net packages and also used major version as part of my request url when acquiring data, all try/catch code are actually not used in my code.
  2. all WRITE logic are not used in client side code, like setxxx() addxxx().

Do you have plan to shrimp these logic? like add some parameters in jar binary to let user can generate cpp code without throw and WRITE logic?

mikir commented 2 days ago

Hello,

thanks for the post.

Maybe, you could use the command line argument -withoutWriterCode for this?