Speed of interfaces vs inheritance
- From: Chris <spam_me_not@xxxxxxxxxx>
- Date: Sat, 30 Dec 2006 13:07:27 -0600
In a particularly time-critical part of my app I need to call a method on an external class in a tight loop. The class can be different in different contexts. I've got two choices: create an interface and have the various different classes implement it, or create an abstract class and have the various different classes extend it.
I seem to recall, in years past, that the interface approach was slower. Is this still the case?
(In this particular situation, either approach works fine, though I personally like the interface approach better).
.
- Follow-Ups:
- Re: Speed of interfaces vs inheritance
- From: Daniel Pitts
- Re: Speed of interfaces vs inheritance
- From: Arne Vajhøj
- Re: Speed of interfaces vs inheritance
- From: Mike Schilling
- Re: Speed of interfaces vs inheritance
- Prev by Date: Re: HashMaps, hashcodes, equals, and Serialization
- Next by Date: Re: Speed of interfaces vs inheritance
- Previous by thread: hibernate annotations I get a MappingNotFoundException
- Next by thread: Re: Speed of interfaces vs inheritance
- Index(es):
Relevant Pages
|
|