speedup add_flow API to avoid timeout
1 file changed