dimroc / etl-language-comparison

Count the number of times certain words were said in a particular neighborhood. Performed as a basic MapReduce job against 25M tweets. Implemented with different programming languages as a educational exercise.
http://blog.dimroc.com/2015/11/14/etl-language-showdown-pt3/
186 stars 33 forks source link

Rust 1.2 build fix #17

Closed potatosalad closed 9 years ago

potatosalad commented 9 years ago

From best I can tell about the error mentioned in #14, cargo didn't like that we were trying to build a release version of the application prior to building a debug version. I actually don't know, but that appears to have fixed the issue for rust 1.2. It may not be necessary, but I also completely removed ~/.cargo after upgrading to 1.2 just to make sure I was starting with a clean slate.

image

As an interesting side note, rust 1.2 has a much, much faster regex implementation (from 19.1 seconds in version 1.0 down to 1.7 seconds in version 1.2).

Rust w/ Substring 2.4s 2.3s
Rust w/ Regular Expression 19.1s 1.7s
dimroc commented 9 years ago

My issue was related to faulty CA certificates not playing well with cargo: https://github.com/rust-lang/cargo/issues/1420

I've now got it running.