Skip to content

Shuffling alternative #4787

Closed
Closed

Description

@1RyanK

Feature Description
I realized that an alternative to using swaps for shuffling would be using a permutation where each locale could calculate the destination index from the source index directly. So using a pseudorandom permutation from something like a Feistel cipher should be decent enough to shuffle arrays and not be too computationally expensive.

Example Behavior
Shuffle flat arrays

Describe Workarounds
There are current implementations for shuffling, but I'd like to investigate whether or not performance could be better.

Activity

  1. added
    enhancement
    on Aug 15, 2025
  2. added 2 commits that reference this issue on Aug 15, 2025
    4d69997
    29c663a
  3. added 3 commits that reference this issue on Aug 25, 2025
    bfd78ae
    01d3352
    3bace64
  4. added a commit that references this issue on Aug 29, 2025
    c804ada
  5. self-assigned this
    on Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions