• Post Reply Bookmark Topic Watch Topic
  • New Topic

Searching for algo and code improvement and performance  RSS feed

 
NoemieMimi Leroy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi y'all,
My code below is working but I am searching for performance improvement.
It consists of looping my PartList  elements and check if my string parameter orginalDataStringList contains the elements on label string.
Thank you
 
NoemieMimi Leroy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Someone can respond my message please !!! Thank you
 
fred rosenberger
lowercase baba
Bartender
Posts: 12563
49
Chrome Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Generally, you don't look to improve performance without a documented reason.  I.e. you have a specific, well defined requirement for how fast something needs to run.  Trying to speed it up just because is pointless.  Google for "premature optimization".

You want to write code that is clear, easy to understand, and maintainable. Shaving a few microseconds off now, when it'll cause you to spend an extra few weeks of debugging in a few months is not a good use of your time.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!