airbreathercore

A library of classes used by all my mods

File Details

airbreathercore-1.0.1a-mc1.8.9.jar

  • R
  • May 1, 2016
  • 30.53 KB
  • 4.9K
  • 1.8.9

File Name

airbreathercore-1.0.1a-mc1.8.9.jar

Supported Versions

  • 1.8.9

Backporting an optimization from 1.0.2-mc1.9, which I described like this on that download page:

 

Also dropping some arguably overly paranoid thread-safety code, adding just the assumption that by the time any events that I care about actually fire, everybody's done subscribing to any such events (which is always true the way I use it, so this likely cuts down on some memory barriers and locks)... related, changing from using a LinkedListMultimap to using an ArrayListMultimap (because the new assumption means I don't have to worry about inconsistent execution-time performance that would hypothetically, in a universe that was never actually going to exist for too many reasons to count, sometimes lock out handlers while we do a potentially slow array copy of many handlers; this hypothetical non-problem was "alleviated" by using LinkedListMultimap, which would have a guaranteed O(1) cost of adding each handler, at the expense of slower performance by every handler).