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

Feature: Optimizations by DistributedLab #1

Draft
wants to merge 40 commits into
base: main
Choose a base branch
from

Conversation

olegfomenko
Copy link
Collaborator

Feature: Optimizations by DistributedLab

Optimizing Keccak

  • Replaced loops with pre-calculated slice indexes
  • Using assembler xor for amd64 and arm64 platforms (taken from golang/x/crypto)

Optimizing FFT

  • Taken parallel approach from gnark-crypto
  • Adding BitReverse from gnark-crypto that should be faster for non-arm platforms

Optimizing util/parallel

  • Use atomic uint instead of the chan of uints
  • Adding thread pool based on chan that executes tasks with different execution time

Optimizing exponent

  • Optimized exp function to user int power instead of big.Int

Checklist

  • I wrote new tests for my new core changes.
  • I have successfully ran tests, style checker and build against my new changes locally.
  • I have informed the team of any breaking changes if there are any.

olegfomenko and others added 30 commits October 3, 2024 16:24
…adding ExecutePoolChunky to multi_to_single_point.go
@olegfomenko olegfomenko marked this pull request as draft November 12, 2024 15:04
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.

2 participants