Please help me debugging loading time of actions

it sure is a strange bug!

I assume there’s a background task (native or from another plugin) that could be affecting the performance.

I tend to wrap my performance sensitive tasks inside a modal function with history suspended.

it’s not ideal but it always performs way better than “naked” code.

hopefully with time PS will get better with queuing tasks and such issues may be solved.