Memory allocation in std :: map

I am reporting on various C ++ dictionary implementations (map, dictionary, vectors, etc.).

Attachment results using std :: map show that performance is O (log n). There are also constant bursts in performance. I am not 100% sure what causes this; I think they are caused by memory allocation, but I could not find any literature / documentation to prove this.

Can someone clear this case or point me in the right direction?

Greetings.

+3
source share
3 answers

: O (log n). ( ).

. http://www.sgi.com/tech/stl/UniqueSortedAssociativeContainer.html . O (log n) O (1), , .

, . , ,

+4

, STL. , , std:: map.

, . , STL-, ; STL - , .

+2

, std:: map - - . , std:: map , . , node, .

+2

Source: https://habr.com/ru/post/1702887/


All Articles