Lupo76,
You could test for intersections of each segment of polyline 1 against polyline 2.
not too sure it would be any faster than above mentionned method though.
Maybe first test the bounding box of polyline 1 against polyline 2, and do the intersections
or boolean test only if the bb test pass.
ymg