Skip to content

axel22/ScalaDays2012-TrieMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game of Life using scala.collection.concurrent.TrieMap

This demo shows how to use a Ctrie map implemenation to code an efficient Game of Life simulation.

Usage

Run ./sbt -sbt-snapshot. This will ensure that Scala 2.10.0-SNAPSHOT version is used. Thank you, Paul Phillips, for your excellent script.

After that:

bench -Dgenerations=5 -Dblocksize=10 -Dsidelength=400 -Dparlevel=2 -Drefreshrate=100 scaladays.GameOfLifeDemo

to run the graphical demo. You will see the number of generations simulated per second. You can experiment by changing the parallelism level with the parlevel option.

You can also run the benchmarks to precisely learn what the performance is:

bench -Dgenerations=5 -Dblocksize=10 -Dsidelength=400 -Dparlevel=2 -Drefreshrate=100 scaladays.GameOfLifeBench 5

Vary the generations option to set the number of generations of the game of life to simulate. The parlevel option again sets the parallelism level.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published