import itertools


def fast_filter(msgs):
    """
    Grabs an arbitrary subset of 100 messages from the stream.
    Convenient for fast testing.
    """
    return itertools.islice(msgs, 100, 1100, 10)