# Speed up region difference component

**URL:** <https://discourse.mcneel.com/t/speed-up-region-difference-component/149513>\
**Category:** Grasshopper\
**Tags:** windows, intersect\
**Created:** [October 22, 2022, 11:20am UTC](https://discourse.mcneel.com/t/speed-up-region-difference-component/149513 "2022-10-22T11:20:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![serabouch](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/serabouch/32/615416_2.png) [@serabouch](https://discourse.mcneel.com/u/serabouch)\
**Post date:** [October 22, 2022, 11:20am UTC](https://discourse.mcneel.com/t/speed-up-region-difference-component/149513/1 "2022-10-22T11:20:28Z")

</div>

I need to speed up this process, any tips?

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/b/7/b/b7b785067265731afa0191956e6c8e0786f5b109.png)

[speed up.gh](https://discourse.mcneel.com/uploads/short-url/nFT8Y2oIruL7xYgZrYg1uwdzzsx.gh) (38.2 KB)

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [October 22, 2022, 11:36am UTC](https://discourse.mcneel.com/t/speed-up-region-difference-component/149513/2 "2022-10-22T11:36:30Z")

</div>

Surface Split is _ **WAY FASTER** _ in this case. Srf SL is a cluster I wrote that returns the smallest and largest surface based on sum of edge lengths _(which is faster than using area)_.  
 ![speed up_2022Oct22a](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/7/a/8/7a8507da6d5a843a39a39f54484eb1476c4d5931.png)  
[speed up\_2022Oct22a.gh](https://discourse.mcneel.com/uploads/short-url/lwfMxWWB3GR9g7JeDXm5aO2JyIj.gh) (46.9 KB)

**P.S.** This is better:

 ![speed up_2022Oct22b](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/3/c/5/3c568d31bf7f23905c6d46045b92b9caae6e6f0f.png)  
[speed up\_2022Oct22b.gh](https://discourse.mcneel.com/uploads/short-url/ogPTMi4k94M0GBmHzNwJu0iIYnk.gh) (40.8 KB)

---

<div class="post-metadata">

**Author:** ![serabouch](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/serabouch/32/615416_2.png) [@serabouch](https://discourse.mcneel.com/u/serabouch)\
**Post date:** [October 22, 2022, 12:03pm UTC](https://discourse.mcneel.com/t/speed-up-region-difference-component/149513/3 "2022-10-22T12:03:10Z")

</div>

Amazing! thanks @Joseph_Oster
