atemerev / skynet

Skynet 1M threads microbenchmark
MIT License
1.04k stars 122 forks source link

F# optimization - use variables and not a record #31

Closed tpetricek closed 8 years ago

tpetricek commented 8 years ago

On my machine (just quick test with copy-paste into F# interactive), this makes it about 25% faster.

daxfohl commented 8 years ago

@tpetricek Surprisingly, using an int64 list for the state, checking state.Count = 10, and then postback(List.sum state) is even faster (and one less variable to code).