# Should we wrap long logic if-else in activity/local-activity?

**URL:** <https://community.temporal.io/t/should-we-wrap-long-logic-if-else-in-activity-local-activity/4835>\
**Category:** Community Support\
**Tags:** go-sdk\
**Created:** [May 30, 2022, 11:25am UTC](https://community.temporal.io/t/should-we-wrap-long-logic-if-else-in-activity-local-activity/4835 "2022-05-30T11:25:33Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [May 30, 2022, 3:50pm UTC](https://community.temporal.io/t/should-we-wrap-long-logic-if-else-in-activity-local-activity/4835/3 "2022-05-30T15:50:52Z")

</div>

How long does the parsing take? You typically do not want to use local activities for computations that exceed the default task timeout (10s).  
Typically the advice is to to stick to normal activities unless your use case requires very high throughput and large activity fanouts of very short activities.

See [here](https://community.temporal.io/t/local-activity-vs-activity/290/3) for more info.

---

_[View the full topic](https://community.temporal.io/t/should-we-wrap-long-logic-if-else-in-activity-local-activity/4835)._
