-
idl.zip |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Thanks for your contribution @rookybird. I am transferring this discussion to the Fast DDS-Gen repository as it is not really related with Fast DDS library. |
Beta Was this translation helpful? Give feedback.
-
We were testing your case and we found what is happening. It's caused by the calculation of the max serialized size of a type. Prior to 2.4.0, fastddsgen generates C++ code which realized the calculation in the initialization of the user's application. With 2.4.0, the calculation is done by fastddsgen when generating the source code. In your case, you have nested sequences (several level of nesting), without boundaries (default 100 elements). Taking into account java code execution is slower than C++, the calculation takes for your case a lot of time, but finally fastddsgen finishes. We take a note to improve this algorithm. A quick solution until then is, if you can, set boundaries in your sequences: |
Beta Was this translation helpful? Give feedback.
-
Current |
Beta Was this translation helpful? Give feedback.
We were testing your case and we found what is happening. It's caused by the calculation of the max serialized size of a type. Prior to 2.4.0, fastddsgen generates C++ code which realized the calculation in the initialization of the user's application. With 2.4.0, the calculation is done by fastddsgen when generating the source code.
In your case, you have nested sequences (several level of nesting), without boundaries (default 100 elements). Taking into account java code execution is slower than C++, the calculation takes for your case a lot of time, but finally fastddsgen finishes.
We take a note to improve this algorithm. A quick solution until then is, if you can, set boundaries in yo…