Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Avoid initialization #187

Closed
recmo opened this issue Sep 24, 2019 · 0 comments
Closed

Avoid initialization #187

recmo opened this issue Sep 24, 2019 · 0 comments
Assignees
Labels
refactor Improves the code quality tracker Issues generated from source comments

Comments

@recmo
Copy link
Contributor

recmo commented Sep 24, 2019

On 2019-09-11 @recmo wrote in 7ced6e0 “Coset parallel LDE”:

Avoid initialization

        let generator =
            FieldElement::root(length).expect("No generator for extended_domain_length.");
        let mut result: MmapVec<FieldElement> = MmapVec::with_capacity(length);

        // Initialize to zero
        // TODO: Avoid initialization
        result.resize(length, FieldElement::ZERO);

        // Compute cosets in parallel
        result
            .as_mut_slice()

From crypto/openstark/src/polynomial.rs:83

@recmo recmo added refactor Improves the code quality tracker Issues generated from source comments labels Sep 24, 2019
@recmo recmo self-assigned this Sep 24, 2019
@recmo recmo closed this as completed Oct 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
refactor Improves the code quality tracker Issues generated from source comments
Projects
None yet
Development

No branches or pull requests

1 participant