|
SObjectizer
5.5
|
Usage of ordinary forms of so_5::receive functions inside loops could be inefficient because of wasting resources on constructions of internal objects with descriptions of handlers on each receive() call. More efficient way is the preparation of all receive params and reusing them later. A combination of so_5::prepare_receive() and so_5::receive() allows us to do that.
Usage example:
The exactly same situation is for so_5::select functions: some resources are allocated on each call of ordinary so_5::select() function and deallocated at exit. This reallocation can be avoided by using so_5::prepare_select() and appropriate so_5::select() function:
1.8.14