make earcut a bit faster