improve lspy performance