Set_entry takes too long when any workflow is attached with it

Set_entry takes too long when any workflow is attached with it .
we are using suiteapi to create entry ,
when we attach any workflow on create or edit of record , set_entry takes too long.

is there any way that we can return control back and keep execution of workflow internally ?

please let me know ASAP.

Thanks,