Currently the code will create N instances of CDIRequestProcessor where N is the number of requests. This causes the heap to become dangerously low at times and can lead to heap fragmentation.
It would be better to allocate a single instance of CDIRequestProcessor and send it requests similar to openlcb::MemoryConfigClient.
Currently the code will create N instances of
CDIRequestProcessor
where N is the number of requests. This causes the heap to become dangerously low at times and can lead to heap fragmentation.It would be better to allocate a single instance of
CDIRequestProcessor
and send it requests similar toopenlcb::MemoryConfigClient
.