Regarding time, you need to read many books to find the answers.

白岩松

Standard Library Container Memory Allocators: allocator

tianlong.xiang