Boost logo

Boost Users :

Subject: Re: [Boost-users] (Newbie) Embedded programming, memory pools, and allocate_shared()
From: Michael Powell (mwpowellhtx_at_[hidden])
Date: 2017-12-13 14:13:25


On Wed, Dec 13, 2017 at 9:08 AM, Steven Boswell II via Boost-users
<boost-users_at_[hidden]> wrote:
> On Tue, Dec 12, 2017 at 5:50PM, Gavin Lambert wrote:
>>I ended up rolling my own code for asynchronous serial I/O at one point
>>because ASIO was a little too mutex-happy, which was causing latency
>>issues.
>>[...]
>>But most memory allocators are decently fast nowadays, to the point
>>where having memory allocations on threads that are doing socket I/O
>>will probably be dominated by the I/O rather than the allocation.
>
> Thanks for warning me that it's somewhat mutex-happy.
> Perhaps that can be fixed, but that'd be one more thing I'd have to do.
>
> And my motivation for controlling memory-allocation wasn't speed, it was to
> make sure I don't exceed my budget, or cause stability problems (e.g. memory
> fragmentation), in an embedded environment.

I appreciate that. Not my first rodeo, there are always trade offs to be made.

> -Steven
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> https://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net