Do Code Redundancies Effect Performance?

I'm running the 'Find Code Issues' in resharper and I see lots of code redundancies.

Will the refactor option or any other option remove these for me or do I have to fix them individually?

If I don't fix them will it effect the performance of the application?

If so, can anyone explain why? Is it because the run time is reasigning the variables when you, for example, cast to an object that is of its own type?

1 comment
Comment actions Permalink

Hello Chuck,

Most of code redundancies do not affect the performance of the final application,
because the compiler will remove some of them anyway. However, they clutter
your code and make it less readable. At the moment you can fix only redundant
casts and redundant qualifiers all at once by running code cleanup. Thank
you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I'm running the 'Find Code Issues' in resharper and I see lots of code
redundancies.

Will the refactor option or any other option remove these for me or do
I have to fix them individually?

If I don't fix them will it effect the performance of the application?

If so, can anyone explain why? Is it because the run time is
reasigning the variables when you, for example, cast to an object that
is of its own type?

---
Original message URL:
http://devnet.jetbrains.net/message/5323035#5323035



0

Please sign in to leave a comment.