[squeak-dev] Rectangle>>merging: does not accepts Sets anymore

Chris Muller asqueaker at gmail.com
Mon Feb 15 22:36:51 UTC 2021


On Sat, Feb 13, 2021 at 10:50 AM Stéphane Rollandin <lecteur at zogotounga.net>
wrote:

> >> I don't have an easy way to verify, but it looks like adding #asArray
> >> might resolve the issue for Sets (e.g. listOfRects asArray in
> #merging:).
>
> Yes it would, but at a cost that I would better avoid (both in term of
> performance and GC), since #merging: is a pretty fundamental method for

computational geometry.
>

In which case you should make use of #quickMerge: then.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210215/4a0abb5c/attachment.html>


More information about the Squeak-dev mailing list