Skip to content
  • Filip Roséen's avatar
    mkv: Added EbmlTypeDispatcher · 421416d1
    Filip Roséen authored and Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf committed
    The EbmlTypeDispatcher is a type used to "dispatch" an object of type
    EbmlElement* to an appropriate callback depending on the dynamic type of
    the referred to object.
    
    It can effectivelly replace the massive if-else branches found
    throughout the module by not only making the code easier to understand
    and maintain, but also by making it _a lot_ faster (benchmarks show a
    speed increase between 450 and 700% in terms of lookup).
    421416d1