BoxPacker
BoxPacker copied to clipboard
$packer->pack() extremelly slow
I've created a packer with 3 types of boxes and added 1000 items to it. When I packed them, it took more than 10 minutes to finish it. Is it like this or is this a recursion problem?
10 minutes seem excessive even for a packing problem of that size - do you have xdebug turned on by any chance?
Yes, in fact I do.
See the comment at the bottom of the readme - xdebug slows everything down by an obscene amount. If you turn it off temporarily and then benchmark, I would expect it to finish well under the 1min mark.