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

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 for more info.