GithubHelp home page GithubHelp logo

Comments (6)

arthurprs avatar arthurprs commented on May 10, 2024

This looks like an easy fix. Any objections for making it 64 bytes ?

from crossbeam.

jeehoonkang avatar jeehoonkang commented on May 10, 2024

Actually we cannot make it 64 bytes -- Participant is used as an argument for CachePadded, but its size is bigger than 64. Only after generalizing CachePadded in such a way that it can serve types bigger than the cache line size, we can make it 64 bytes.

Note that we can make it 128 bytes.

from crossbeam.

arthurprs avatar arthurprs commented on May 10, 2024

Could we implement the methods for arrays of cache padding (multiples of 64 bytes but still holding a single T)?

from crossbeam.

jeehoonkang avatar jeehoonkang commented on May 10, 2024

@arthurprs currently we cannot. See #6 (comment) .

from crossbeam.

arthurprs avatar arthurprs commented on May 10, 2024

Providing implementations (using macros) for [CachePadding; $$$] up to 4 (256 bytes) should be more than enough. Am I missing something?

from crossbeam.

mstewartgallus avatar mstewartgallus commented on May 10, 2024

Why not something along the lines of https://sstewartgallus.com/git?p=uevents-rs.git;a=blob;f=src/cacheline.rs;h=4b726636b02bdc2fbba4e1e7bc3912232864d2b2;hb=HEAD ?

from crossbeam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.