One of my colleagues told me that implementing interfaces introduces overhead. Is this true?
I am not concerned about micro optimizations; I just want to know the deeper details this entails.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
couldn’t resist and tested it and it looks like almost no overhead.
Participants are:
so i defined
and called the method, which does 20 string concatenations, 10,000,000 times on each variable.
If the method does nothing, the actual calls stand out a bit more.