wordcount icon indicating copy to clipboard operation
wordcount copied to clipboard

Awk support.

Open agrison opened this issue 10 years ago • 5 comments

Using only gawk, which outperforms the original bash program.

agrison avatar Mar 25 '16 17:03 agrison

Making the tied values sorted alphabetically makes it slower than first version, but still largely outperforms the original bash program on my machine (don't have docker installed).

agrison avatar Mar 25 '16 19:03 agrison

That's strange, I cannot reproduce the same behavior on a linux box (hosted on digital ocean) and on my macbook pro. It turns out that the current awk implementation is 3 to 4 times slower than the original bash program on linux, but on my mac it's exactly the inverse scenario :smile_cat:

agrison avatar Mar 25 '16 21:03 agrison

That is unusual, I wouldn't expect such a big gap between the implementations. Should I merge this or do you want to keep working on it?

juditacs avatar Mar 26 '16 13:03 juditacs

I'll work on it, I've got an OCaml implementation pending also. thanks!

agrison avatar Mar 26 '16 13:03 agrison

Looking forward to your OCaml imeplementation :)

juditacs avatar Mar 29 '16 21:03 juditacs