improve size hint usage