上杉夏香’s Reviews > Ultimate Go Notebook > Status Update
上杉夏香
is on page 45 of 352
开头就讲了CPU Cache 与 Cache Line。
做了三个benchmark:分别是遍历linked-list、行方向遍历矩阵、列方向遍历矩阵。
让我惊奇的是,遍历linked-list比列向遍历矩阵还快,更准确的说,它只比行向遍历矩阵慢一些
> The linked list is twice as slow as the row traversal mainly because there are cache line misses but fewer TLB (Translation Lookaside Buffer) misses. A bulk of the nodes connected in the list exist inside the same OS pages.
— Aug 25, 2023 03:32AM
做了三个benchmark:分别是遍历linked-list、行方向遍历矩阵、列方向遍历矩阵。
让我惊奇的是,遍历linked-list比列向遍历矩阵还快,更准确的说,它只比行向遍历矩阵慢一些
> The linked list is twice as slow as the row traversal mainly because there are cache line misses but fewer TLB (Translation Lookaside Buffer) misses. A bulk of the nodes connected in the list exist inside the same OS pages.
Like flag
上杉夏香’s Previous Updates
上杉夏香
is on page 70 of 352
receiver semantics && builtin types receiver should be value receiver
— Jan 07, 2024 10:08PM

