erpc icon indicating copy to clipboard operation
erpc copied to clipboard

Add to server option to free codec while real API called

Open amgross opened this issue 3 years ago • 2 comments

As far as I understand, while real API called in the server the codec is not in use and all whatever in it won't be used. So what do you think about adding option (under compilation flags) to release the codec before the API called and create it back after the API finishes? For systems with little RAM this may mean lots. We can see that the codec is not really in use while the API because we run codec->reset after that

amgross avatar Jun 03 '22 06:06 amgross

Hm currently it make sense. Later we wan't option to do not realocate data so user will get data pointing to received message.

Hadatko avatar Jun 15 '22 05:06 Hadatko

Later we wan't option to do not realocate data so user will get data pointing to received message.

OK, got your point. You plan it to be all the time or just under specific compilation flags?

amgross avatar Jun 15 '22 08:06 amgross