Skip to content

Dynamically allocate lookup table entries #408

Open
@ChristopherRabotin

Description

@ChristopherRabotin

High level description

The LUT entries are currently fixed at compile time. This design was useful when ANISE tried to avoid all memory allocations. However, as ANISE has added more features, I've allowed for allocations at initialization and loading of files. The Look Up Table structure uses static sized vectors, but the underlying dataset uses dynamically allocated structures: Rust prevent memory leaks, so why not just switch the LUT to also use dynamic memory allocations? This change would break data from version 0.4 and 0.5 of ANISE (both versions have compatible PCA/EPA datasets).

Requirements

Switch the Lookup table from compile-time sized arrays to dynamically allocated arrays.

Test plans

No additional test plans are needed

Design

Consider removing the FvnIndexVec dependency if it isn't used anywhere else.

Metadata

Metadata

Labels

algoRelated to the core ANISE algorithms

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions