From: Pablo d'Angelo <pablo.dangelo@we...>  20051107 01:06:53

Hi all, I have noticed that stitching 360x180 degs panos using hugin is very slow on my linux (ubuntu breezy) AMD64 machine. I have traced the problem to the tan() function standart math library shipped with glibc 2.3.5. This function is terribly slow for tan(pi/2). For this case it is roughly 40000 times slower than the i386 equivalent !! Unfortunately tan(pi/2) is frequently computed in rect_sphere_tp. This patch detects this case and uses a fixed big number for tan(pi/2). Some linux distributions (suse, redhat) ship with a different, optimized math library, but I haven't tested this one yet. This patch should definately be used for all gcc compiled libpano12's on amd64. ciao Pablo 