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

Lighter construction of finite field elements from lists #35358

Merged
merged 1 commit into from
Apr 6, 2023

Commits on Mar 27, 2023

  1. Lighter construction of finite field elements from lists

    When doing intensive polynomial arithmetic with the NTL implementation
    the constructor with lists is called a large number of times
    and may spend a lot of time constructing the vector_space and
    FreeModuleElement objects.
    
    The very common call to vector_space(map=False) is optimized to be as cheap as
    possible using the already cached object.
    
    The common case of lists of length 0 and 1 is replaced by cheaper
    shortcuts.
    remyoudompheng committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    63c3ab6 View commit details
    Browse the repository at this point in the history