# Runtime of SegmentMesher

**URL:** <https://discourse.slicer.org/t/runtime-of-segmentmesher/10193>\
**Category:** Support\
**Tags:** meshing\
**Created:** [February 10, 2020, 8:07pm UTC](https://discourse.slicer.org/t/runtime-of-segmentmesher/10193 "2020-02-10T20:07:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aep93](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aep93/32/5990_2.png) [@Aep93](https://discourse.slicer.org/u/Aep93)\
**Post date:** [February 10, 2020, 8:07pm UTC](https://discourse.slicer.org/t/runtime-of-segmentmesher/10193/1 "2020-02-10T20:07:43Z")

</div>

Hello all,  
Is there any way to speed up generating mesh using SegmentMesher?  
Is it possible to use GPU for these calculations or is it possible to run in parallel? or are there any other suggestions?  
Thanks for your help.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 11, 2020, 12:28am UTC](https://discourse.slicer.org/t/runtime-of-segmentmesher/10193/2 "2020-02-11T00:28:52Z")

</div>

> [@Aep93](#):
>
> Is there any way to speed up generating mesh using SegmentMesher?

Volumetric meshing is typically not a time-constrained task, so processing time is usually not a priority when developing meshing algorithms.

Cleaver2 is actually a very fast method and it is nicely configurable to balance between mesh resolution, quality, and processing time.

> [@Aep93](#):
>
> Is it possible to use GPU for these calculations or is it possible to run in parallel? or are there any other suggestions?

GPU (or many-core CPU) can only make an algorithm faster if you can split the processing to many independent tasks. Unfortunately, most algorithms are sequential in nature and you need to make significant effort to redesign them to allow running some parts of it in parallel.

I would recommend to contact the Cleaver team about possible performance optimizations and/or do some profiling yourself and see if you can make things run faster.

---

<div class="post-metadata">

**Author:** ![Aep93](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aep93/32/5990_2.png) [@Aep93](https://discourse.slicer.org/u/Aep93)\
**Post date:** [February 11, 2020, 1:50am UTC](https://discourse.slicer.org/t/runtime-of-segmentmesher/10193/3 "2020-02-11T01:50:09Z")

</div>

Thank you very much for your response.
