percyliang / brown-cluster

C++ implementation of the Brown word clustering algorithm.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Speed up with compiler optimization

SimonSuster opened this issue · comments

In case anyone is clustering large datasets:

in my experiments (40M corpus and NofClusters=1000), turning on compiler optimization with "-O3" yields speed-ups of around 3.

I changed the following lines in my Makefile:

wcluster: $(files)
    g++ -Wall -g -O3 -o wcluster $(files)

%.o: %.cc
    g++ -Wall -g -O3 -o $@ -c $<

I'm surprised I didn't have it in there before. It's added now - thanks
for the note!

-Percy

On Thu, Sep 5, 2013 at 4:57 AM, Simon Suster notifications@github.comwrote:

In case anyone is clustering large datasets:

in my experiments (40M corpus and NofClusters=1000), turning on compiler
optimization with "-O3" yields speed-ups of around 3.

I changed the following lines in my Makefile:

wcluster: $(files)

g++ -Wall -g -O3 -o wcluster $(files)

%.o: %.cc
g++ -Wall -g -O3 -o $@ -c $&lt;


Reply to this email directly or view it on GitHubhttps://github.com//issues/6
.