BoxPacker icon indicating copy to clipboard operation
BoxPacker copied to clipboard

$packer->pack() extremelly slow

Open 3m0 opened this issue 11 years ago • 3 comments

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?

3m0 avatar Oct 19 '15 21:10 3m0

10 minutes seem excessive even for a packing problem of that size - do you have xdebug turned on by any chance?

dvdoug avatar Oct 25 '15 17:10 dvdoug

Yes, in fact I do.

3m0 avatar Oct 26 '15 16:10 3m0

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.

dvdoug avatar Oct 26 '15 22:10 dvdoug