euler_path : improve performance.