better memory handling, faster import