aconstlink / motor

Software Framework for Audio/Visual/Interactive Real-Time Applications
MIT License
2 stars 0 forks source link

std::_Container_proxy #6

Open aconstlink opened 10 months ago

aconstlink commented 10 months ago

The std::_Container_proxy going through the allocator alot. On the MSVC this causes alot of memory allocations. I am not sure at the moment how this is going to be on gcc or other compilers/platforms.

Maybe we can ease that experience a little bit because this class uses memory even on local std containers.

I can't very much believe it but this code performs heap allocations through a custom allocator.

motor::string_t test ;
motor::vector< int > test_v ;

The constructor causes the allocator to trigger an allocation of the aforementioned std::_Container_proxy. Maybe I missed something in the allocator that needs to be done?