faster log filtering