done some code speedup by replacing multiple small malloc calls with one
done some code speedup by replacing multiple small malloc calls with one

larsuhartmann/libportage,larsuhartmann/libportage,psychoschlumpf/libportage,psychoschlumpf/libportage