Skip to content

distance.c - fread'ing all vector floats at once boosts loading speed by ~3x... #34

@GoogleCodeExporter

Description

@GoogleCodeExporter
replacing:
    for (a = 0; a < size; a++) fread(&M[a + b * size], sizeof(float), 1, f);

with:
    fread(&M[b * size], sizeof(float), size, f);

Greatly increases loading speed.

Original issue reported on code.google.com by [email protected] on 21 Jul 2015 at 5:01

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions