• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Searching for algo and code improvement and performance  RSS feed

 
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
 
lowercase baba
Bartender
Posts: 12628
50
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!