kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #44750
Re: Tiling Algorithm Improvements
-
To:
Alex <alex.21789@xxxxxxxxx>, <kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Tomasz Wlostowski <tomasz.wlostowski@xxxxxxx>
-
Date:
Mon, 23 Nov 2020 22:48:57 +0100
-
Arc-authentication-results:
i=1; mx.microsoft.com 1; spf=pass (sender ip is 188.184.36.46) smtp.rcpttodomain=lists.launchpad.net smtp.mailfrom=cern.ch; dmarc=bestguesspass action=none header.from=cern.ch; dkim=none (message not signed); arc=none
-
Arc-message-signature:
i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iZRZGsKI5h5Eo4SR4jEFIbWN+PSZhrDmHd6XocG8nUw=; b=XsORXNOlYo7Zlu1FOhLblhimDJ18KhaiN4SxC3748FXRgDZdcLPpcXEZmcjndyGsozkolZ91q4s51ti5tL1g/6mklPXY3caZr7ZebTRkeiwQsZu6BlF/qbdov3WaBxzRV5i1a8rgzkxf2ArN3pGl5XVUDcLBmM8KO+A5F2oCP1jvL3ffVq5DkpR1mhTqwQ9Na1waUhqlKmdJggUVaw3QKjqhsvKDyhIrZIuUweRJHQ+0wFB2SPdsF/FFHGI1rfvS14fZDLxtWkOsHQPPmS3PR9ld40FWEugWo9/m72y/rHsdgP4edbBzfTeCiB8k5MbfwuTdtx2FLTlMDtuAh2QIFQ==
-
Arc-seal:
i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nuhpU+RkSc8d2BYYuSMYjzWyrsInGkPLmPhGinJpjX2LEUUbJivyaQHE6VEoPlb0CtXyE2wgUcb/cwcuyHA3aoYTs3F8FDeCVIt/srRPc6QVkUVw9W1jPHefpQcdTTi9bYVaLusoQnQxzXOYdGuRTmKz3ac81wfVTZGcNSsBqFbvuj1IaoPzCd5VdioQtX3F/K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ag7lNgJEClmyIn7 l4aMoNLmrYowRM3VaM9BIqC0ADoJvkprYWxFh0SxpKrLpYIVxK4x9M28704rtRCLI8LnuM3a Lp+GcQ+BQCwrLEDqMznQLnLo/29uUFYaKwo1gCBemUpe56f8rXFCLUe9wFOw1rPua1g+/vLp wJgWGDI2qtqK9yHfaY6OnDWKOOM8x3S6I49p+sIQZSxVwJU29llZswvC7Cuj640b4WH5+56N QwjebIquylvEzLgHCYKrns5eqwSOJP4mnOY/k5DjTLhek6GEkNbEuMaFDAzT/qXq8z7EN1Cg U15a0Rs3ESuLG6EMGvt6UT/fHHymAoOm0J0pUzJvYuwUr4iZzxRxxsFC0oHxSqngJllsZjj4 f20j3RybebeZ0051bKt8jFs/W2AfAbiAncKhkbI9G+6CXvTzgUM=
-
In-reply-to:
<CAGkip9Ptrt93nCz9RUnuZg9=WjcDkefQ5LJTH5mQD80+h0MXmw@mail.gmail.com>
-
Openpgp:
preference=signencrypt
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0
On 20/11/2020 10:02, Alex wrote:
> Hi everyone,
>
> I started doing some C++11 modernization and Standard Library insertion
> in the rectangular placement segment of the PCBNew, and in the process I
> went down the rabbit hole of documentation for the algorithm. Out of
> curiosity I adjusted the Greater algorithm from only sorting on the
> longest side, to first sorting by longest side, and then sorting by
> shortest side.
>
> I found that this small adjustment seemed to increase packing density
> enough that when presented with 500 rectangles of randomly generated
> size of (15x15) - (85x85) fit into surfaces of (255 x 255), the total
> number of required surfaces went from ~28 to ~26. The catch is that the
> initial sorting of the algorithm takes a little longer.
>
> Always the skeptic, I would like to know if there is currently a
> methodology or recommendation for incorporating a benchmark test for
> both space and time performance. At minimum, I can use Google Benchmark,
> but I'd like to know if I should place the tests in the same folder, or
> if there is another place for this kind of stuff.
>
Alex,
Do you mean the rect packing algorithm used by the autoplacer?
Tom
Follow ups
References