Skip to content

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

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 chad.p...@gmail.com on 21 Jul 2015 at 5:01

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions