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

Improve AesGcmSiv Aead performance by optimizing classpath check #5

Closed
wants to merge 2 commits into from

Commits on Mar 3, 2023

  1. Improve AesGcmSiv Aead performance by optimizing classpath check

    Motivation:
    
    `Aead` implementation for `AesGcmSiv` checks if `GCMParameterSpec` class
    exists in classpath by invoking `Class#forName` method whenever data
    gets encrypted or decrypted.
    
    A benchmark on `AesGcmSiv` claims that `Class#forName` accounts for 4-5%
    of the total CPU cycles consumed for data en/decryption and 12% or more
    throughput gain can be obtained by optimizing away the `Class#forName`
    method invocation.
    
    Modification:
    
    Cache the result of the classpath check in `AesGcmSiv`
    ks-yim committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    414523b View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2023

  1. Configuration menu
    Copy the full SHA
    db34a41 View commit details
    Browse the repository at this point in the history