Discover Packages
github.com/cedrickchee/ydkgo
content
docs
testing
benchmarks
caching
package
Version:
v0.0.0-...-b2ac4ad
Opens a new window with list of versions in this module.
Published: Dec 2, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
title: "CPU Caches"
weight: 2
bookHidden: true
CPU Caches
Understanding how the hardware works is a critical component to understanding how to write the most performant code you can. Knowing the basics of processor caching can help you make better decisions within the scope of writing idiomatic code.
Arrays
Please review the section on arrays for more details behind these benchmark tests.
Review Documentation on arrays
Code Review
Caching (Go Playground
Tests (Go Playground )
All material is licensed under the Apache License Version 2.0, January 2004 .
Expand ▾
Collapse ▴
Documentation
¶
Package caching provides code to show why Data Oriented Design matters. How
data layouts matter more to performance than algorithm efficiency.
func ColumnTraverse() int
ColumnTraverse traverses the matrix linearly down each column.
func LinkedListTraverse() int
LinkedListTraverse traverses the linked list linearly.
RowTraverse traverses the matrix linearly down each row.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.