johnsonjh / gonuma

gonuma: A utility library for writing NUMA-aware Go applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gonuma

GRC


gonuma is a Go utility library for writing NUMA-aware applications


Availability


Original Author


License


Usage

package main

import (
        gonuma "github.com/johnsonjh/gonuma"
)

type object struct {
		X int
		_ [...]byte // pad to page size
}

var objects = make(
		[]object,
		gonuma.CPUCount(),
)

func fnxxxx() {
		cpu, node := gonuma.GetCPUAndNode()
		objects[cpu].X = xx
}

ezoic increase your site revenue

About

gonuma: A utility library for writing NUMA-aware Go applications

License:Other


Languages

Language:Go 96.9%Language:Assembly 3.1%