<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.emailstyle17
        {mso-style-name:emailstyle17;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:#1F497D'>I think I have been able to
narrow this issue down. It appears that setting ANGLE AUTO impacts
performance in linux. On the exact same hardware I find this performance
difference to be between 2x-3x slower for linux. I have benchmarked this
with Ubuntu Karmic, but I have also tried this on numerous versions of
Debian-based distros. Here is the detail of the package that I am
using: <a href="http://ns2.canonical.com/ko/karmic/web/php5-mapscript">http://ns2.canonical.com/ko/karmic/web/php5-mapscript</a><o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Here is an example of this
problem that can be deployed on windows and linux (with modifications to path
names). <a href="http://c0342891.cdn.cloudfiles.rackspacecloud.com/test.tar">http://c0342891.cdn.cloudfiles.rackspacecloud.com/test.tar</a>
<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Could this be a bug on the Linux
side?<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Thanks,<br>
Chris<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>LABEL<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> TYPE
truetype<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> ANTIALIAS
true<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> FONT
tahoma<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> SIZE
6<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> POSITION
cc<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> <b>ANGLE
AUTO<o:p></o:p></b></span></p>
<p class=MsoNormal><span style='color:#1F497D'> OUTLINECOLOR
255 255 255<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
COLOR
0 0 0<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> MINDISTANCE
150<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
END #end LABEL<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> JUDD.CHRISTOPHER <br>
<b>Sent:</b> Wednesday, September 16, 2009 1:40 PM<br>
<b>To:</b> 'Dan Little'; mapserver-dev@lists.osgeo.org<br>
<b>Subject:</b> RE: [mapserver-dev] mapserver performance windows/linux<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='color:#1F497D'>Hi Dan,<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Its executing the same code on
Windows and Linux. I assume that would be the same.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-Chris<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Dan Little
[mailto:danlittle@yahoo.com] <br>
<b>Sent:</b> Wednesday, September 16, 2009 1:36 PM<br>
<b>To:</b> JUDD.CHRISTOPHER; mapserver-dev@lists.osgeo.org<br>
<b>Subject:</b> Re: [mapserver-dev] mapserver performance windows/linux<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Are
you using the same label rendering engine on both platforms (GD True-type or
AGG)?<o:p></o:p></span></p>
</div>
<blockquote style='border:none;border-left:solid #1010FF 1.5pt;padding:0in 0in 0in 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-bottom:5.0pt'>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> JUDD.CHRISTOPHER
<JUDD.CHRISTOPHER@flsenate.gov><br>
<b>To:</b> mapserver-dev@lists.osgeo.org<br>
<b>Sent:</b> Tuesday, September 15, 2009 11:04:59 AM<br>
<b>Subject:</b> [mapserver-dev] mapserver performance windows/linux</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<div>
<p class=MsoNormal>We have migrated our PHP Mapscript application from Windows
to Linux. Everything appeared to be working well until we starting
drawing maps that did quite a bit of label rendering. We found linux to
be over twice as slow as Windows XP (running MS4W 2.3.1) on the same hardware
when drawing labels. If I turn the labeling off, the map performance
exceeds that of windows. I am using the same TrueType fonts on both
systems. <o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal>I have tried a number of different debian based
distributions including: Debian Lenny, Xubuntu and Ubuntu Server with different
versions of PHP Mapscript including 5.0.3, 5.2 and 5.4. All exhibited the
same results. <o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal>Has anyone ran into this problem? Is there something
significantly different between the way Windows and Linux process fonts that
could explain this? <o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal>Thanks, <o:p></o:p></p>
<p class=MsoNormal>Chris<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
</div>
</div>
</div>
</blockquote>
</div>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
</div>
</body>
</html>