def _is_compiled(url):
    """
    Returns True if wheel with provided url is precompiled.

    The logic in this method is a less efficient version of
    -cp[0-9]{2}- regex matching.
    """
    prefix = "-cp"
    start = 0
    for _ in range(len(url)):
        start = url.find(prefix, start)
        if start == -1 or start + 6 >= len(url):
            break
        if url[start + len(prefix)].isdigit() and \
           url[start + len(prefix) + 1].isdigit() and \
           url[start + len(prefix) + 2] == "-":
            return True
        start += len(prefix)
    return False