The invention discloses an optimization method and device for an embedded
linked list container,
electronic equipment and a storage medium, and relates to the technical field of computers, the method comprises the steps that a
linked list node is embedded into a host
data structure to serve as a
member variable, extra memory occupation of a pointer domain in a traditional
linked list is omitted, and the optimization efficiency is improved. Physical storage of the nodes and the host
data structure is continuous, so that cache missing can be reduced; meanwhile, the stability of the linked
list under high
concurrency is guaranteed through atomized
insertion and deletion operations, and a traditional independent node structure and a non-atomized operation are not adopted; the technical problems that in the prior art, a traditional linked
list node pointer domain occupies an extra memory, so that expenditure is increased, discontinuous node physical distribution causes cache missing, access
delay is increased, and
system abnormal safety and operation reliability are affected by
iterator failure under high
concurrency can be solved. And the technical effects of reducing the memory overhead, reducing the access
delay and improving the abnormal safety and the operation reliability of the
system are achieved.