DjangoPeng / DjangoPeng/word2vec

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

Open
#34 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
C
Stars
3
Forks
5
PR merge metrics
No merged PRs in 30d

Description

```
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.