]> hydra-www.ietfng.org Git - acmetensortoys-watchviz/commit
AudioProvider hot path a little smaller
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Sat, 17 Sep 2016 19:46:56 +0000 (15:46 -0400)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Sat, 17 Sep 2016 19:46:56 +0000 (15:46 -0400)
commit88e0399f3a39fe1c22053ac3c0cfc03ab826754f
treedf0d8c21050b5ddecd6e5e8c8f217f300095a44f
parent33b9796aa1c09051bf9a6f050a1ce55bb6fcba63
AudioProvider hot path a little smaller

Mutation to the collection of receivers now happens on cloned objects
and so the only synchronized operation needed on the hot path is the
read of the current pointer, rather than a full clone.  Immutability changes
everything.
vizlib/src/main/java/com/acmetensortoys/watchviz/vizlib/AudioProvider.java