Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » String == optimization hint...
String == optimization hint... [message #18378] Thu, 25 September 2008 11:29
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
BTW, due to nature of new String implementation:

void Foo()
{
    String s = ...
    if(s == "myfoo") ...
}


is much faster written as

static String s_myfoo("myfoo");

void Foo()
{
    String s = ...
    if(s == s_myfoo) ...
}


Mirek

[Updated on: Thu, 25 September 2008 11:32]

Report message to a moderator

Previous Topic: Upp Idea -> MultiTouch support
Next Topic: Has "file index" any fans?
Goto Forum:
  


Current Time: Sat Apr 27 10:32:30 CEST 2024

Total time taken to generate the page: 0.88822 seconds