Skip to content

Optimize FactorizationMachinesNative.cpp #415

@sfilipi

Description

@sfilipi

Optimize the FactorizationMachinesNative.cpp, by:
1- switching the control variables of the for loops from post-increment to pre-increment, to avoid the extra storage
2- Optimize the intermediate calculations on the current tight loops for better performance.

Example:
for (int fprime = 0; fprime < m; fprime++)
{
const int vBias = j * m * d + fprime * d;
const int qBias = f * m * d + fprime * d;

3- Potentially substitute AlignedArray with a regular array. See the discussion on PR #383

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneed infoThis issue needs more info before triageup-for-grabsA good issue to fix if you are trying to contribute to the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions