Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose all parallelization utility functions #2576

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

vicsn
Copy link
Contributor

@vicsn vicsn commented Nov 19, 2024

Motivation

Came across this when trying to parallelize stuff in snarkOS, and realized I couldn't access all known functions.

Test Plan

No tests needed, only changes exposed functions.

Copy link
Contributor

@iamalwaysuncomfortable iamalwaysuncomfortable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems fine except for the exposure of cfg_sort_unstable_by

cfg_reduce,
cfg_reduce_with,
cfg_sort_by_cached_key,
cfg_sort_unstable_by,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one shouldn't be exposed as the documentation states it may not preserve order of equal elements. Exposing that makes me uncofmortable.

Suggested change
cfg_sort_unstable_by,

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That quality is perfectly fine in almost all scenarios, and it's faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants