<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 3, 2016, at 11:07 PM, Pushkar N Kulkarni via swift-dev <<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><font face="Verdana,Arial,Helvetica,sans-serif" size="2" class=""><div class="">Hello,</div><div class=""><br class=""></div><div class="">A colleague of mine who's doing performance testing with some server-side Swift frameworks like Kitura, Perfect and Zewo found a 15-20% degradation with a simple "Hello World" benchmark, with the 3.0.1 previews on Linux. Analysis revealed it is related to the disabling of an optimisation around String comparison for Swift runtimes - this commit - <a href="https://github.com/apple/swift/commit/ef974af339996f63c72d54ec7ef53b625e5a1a76" class="commit-link" target="_blank" style="box-sizing: inherit; cursor: pointer; font-family: arial, helvetica, sans-serif; font-size: 11px;"><font face="arial, helvetica, sans-serif" style="box-sizing: inherit; cursor: pointer; font-family: arial, helvetica, sans-serif; font-size: 11px;" class=""><span style="box-sizing: inherit; cursor: pointer; font-size: 11px;" class="">apple/swift@</span></font><tt style="box-sizing: inherit; cursor: pointer; font-family: arial, helvetica, sans-serif; font-size: 11px;" class="">ef974af</tt></a></div><div class=""><br class=""></div><div class="">Do we have a plan to reimplement this optimisation for Swift runtimes in the future? Any more information about this would be highly appreciated. <br class=""></div></font></div></blockquote><div><br class=""></div><div>Can you please provide a benchmark in a pull request that shows the performance degradation?</div><div><br class=""></div><div>Michael</div><br class=""><blockquote type="cite" class=""><div class=""><font face="Verdana,Arial,Helvetica,sans-serif" size="2" class=""><div class=""><font face="Verdana,Arial,Helvetica,sans-serif" size="2" class=""><font class=""><font class=""><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div dir="ltr" style="font-style: normal;" class=""><br class=""></div><div dir="ltr" style="font-style: normal;" class="">Thank you!</div><div dir="ltr" style="font-style: normal;" class=""><br class=""><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class="">Pushkar N Kulkarni,</font></div>
<div dir="ltr" style="font-style: normal;" class=""><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class="">IBM Runtimes</font></div><div dir="ltr" style="font-style: normal;" class=""><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class=""><br class=""></font></div><div dir="ltr" class=""><font face="serif, Times New Roman, Times, serif" class=""><i class="">Simplicity is prerequisite for reliability - Edsger W. Dijkstra</i></font></div>
<div dir="ltr" style="font-style: normal; font-size: 10.5pt; font-family: Arial;" class=""><br class=""></div></div></div></div></font></font></font></div></font><br class="">
_______________________________________________<br class="">swift-dev mailing list<br class=""><a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-dev<br class=""></div></blockquote></div><br class=""></body></html>