On 06/10/2010 03:44 PM, Scott Carey wrote:
The getBar$Type() requires the cascaded if/else though.
Right, that's the cost I was alluding too. Some unions are reasonably large, e.g., http://s.apache.org/Events.avpr, where the union at the end has 16 branches, and the cost of the cascaded if/else could be higher than we'd like. It'd be nice if unions with even hundreds of branches were still fast to read and write.
Doug
