Boost C++ Libraries: Ticket #4458: is_iequal optimization https://svn.boost.org/trac10/ticket/4458 <table class="wiki"> <tr>Wouldn't return Arg1 == Arg2 <td> std::toupper&lt;T1&gt;(Arg1,m_Loc)==std::toupper&lt;T2&gt;(Arg2,m_Loc); </td></tr></table> <p> be faster, since it might avoid the toupper calls? </p> <pre class="wiki"> template&lt; typename T1, typename T2 &gt; bool operator()( const T1&amp; Arg1, const T2&amp; Arg2 ) const { #if defined(__BORLANDC__) &amp;&amp; (__BORLANDC__ &gt;= 0x560) &amp;&amp; (__BORLANDC__ &lt;= 0x564) &amp;&amp; !defined(_USE_OLD_RW_STL) return std::toupper(Arg1)==std::toupper(Arg2); #else return std::toupper&lt;T1&gt;(Arg1,m_Loc)==std::toupper&lt;T2&gt;(Arg2,m_Loc); #endif } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4458 Trac 1.4.3 anonymous Wed, 21 Jul 2010 12:42:54 GMT <link>https://svn.boost.org/trac10/ticket/4458#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4458#comment:1</guid> <description> <p> Argh, I hate Trac! </p> <pre class="wiki">return Arg1 == Arg2 || std::toupper&lt;T1&gt;(Arg1,m_Loc)==std::toupper&lt;T2&gt;(Arg2,m_Loc); </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 21 Jul 2010 19:46:06 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4458#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4458#comment:2</guid> <description> <p> Hi, </p> <p> Can you provide some simple measures, that will support your proof? The idea seems valid, but I would like to see the facts. </p> <p> Pavol. </p> </description> <category>Ticket</category> </item> <item> <author>olafvdspek@…</author> <pubDate>Thu, 22 Jul 2010 10:33:54 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4458#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4458#comment:3</guid> <description> <p> Benchmarks are either simple or good, but not both. ;) </p> <p> I could try to generate some numbers if you really wish. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 25 Nov 2010 17:40:20 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4458#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4458#comment:4</guid> <description> <p> Pavol? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Pavol Droba</dc:creator> <pubDate>Sat, 27 Nov 2010 22:00:49 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4458#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4458#comment:5</guid> <description> <p> The change's not there yet. Have you done some testing? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Wed, 28 Dec 2011 18:54:55 GMT</pubDate> <title>owner, component changed https://svn.boost.org/trac10/ticket/4458#comment:6 https://svn.boost.org/trac10/ticket/4458#comment:6 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Pavol Droba</span> to <span class="trac-author">Marshall Clow</span> </li> <li><strong>component</strong> <span class="trac-field-old">string_algo</span> → <span class="trac-field-new">algorithm</span> </li> </ul> Ticket Marshall Clow Wed, 28 Dec 2011 18:59:31 GMT <link>https://svn.boost.org/trac10/ticket/4458#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4458#comment:7</guid> <description> <p> Olaf - do you have any numbers to show that this will be a speed up? </p> <p> Thanks, Marshall </p> </description> <category>Ticket</category> </item> <item> <author>Olaf van der Spek <olafvdspek@…></author> <pubDate>Wed, 28 Dec 2011 19:01:14 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4458#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4458#comment:8</guid> <description> <p> Nope. Let's just drop the idea. If the arguments aren't equal, the change won't help at all. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Sun, 01 Jan 2012 21:44:08 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4458#comment:9 https://svn.boost.org/trac10/ticket/4458#comment:9 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> Ticket