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

Memory optimization #39 #40

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Memory optimization #39 #40

wants to merge 6 commits into from

Commits on Oct 2, 2024

  1. Use a Buffer Pool

    Instead of allocating new byte arrays each time you perform a cryptographic operation (such as signing, encryption, or converting data to/from Base64), you can use a buffer pool. A buffer pool maintains a set of preallocated buffers that can be reused, reducing the need for frequent allocations. In .NET, the ArrayPool<T> class is ideal for this purpose.
    kfrancis committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    85e8954 View commit details
    Browse the repository at this point in the history
  2. Optimized XML parsing and writing

    The code has been updated to use XmlReader and XmlWriter for efficient XML parsing and writing. This change improves the performance of loading and saving licenses by ignoring unnecessary whitespace during reading, and enabling indentation during writing.
    kfrancis committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    d6d3b7b View commit details
    Browse the repository at this point in the history
  3. Optimized XML parsing in License class

    Introduced a static XmlReaderSettings object with pre-configured settings to optimize XML parsing in the License class. This change reduces unnecessary processing by ignoring whitespace, comments, and processing instructions during XML reading. The new settings are now used when creating an XmlReader instance for loading licenses from a stream.
    kfrancis committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    b30cec8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e10ee1d View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. include buffers

    kfrancis committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    b8e3dbe View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2024

  1. Use Fill

    kfrancis committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    2755e5a View commit details
    Browse the repository at this point in the history