#300 fast return for SegmentedTimeline.getExceptionSegmentCount()

open
nobody
None
5
2012-11-27
2012-07-25
Adrian Nistor
No

Method
"getExceptionSegmentCount(long fromMillisecond, long toMillisecond)"
in class SegmentedTimeline already has a fast return option:

if (toMillisecond < fromMillisecond) {
return (0);
}

but this is not all. This patch adds fast return when the
[fromMillisecond, toMillisecond] interval is before or after the first
or last exception segment respectively.

Discussion

  • Adrian Nistor
    Adrian Nistor
    2012-07-25

    fast return for SegmentedTimeline.getExceptionSegmentCount()

     
    Attachments