I Will Get That Job At Google. | Instanceof vs class name check. Performance test
Let's also assume that collection classes are final and don't need to be extended. This sutuation is almost always true for collection items. How can we improve such equals method? Instanceof is quite a slow operation. Let's write a synthetic test. At first we will calculate total time needed to call instanceof method:
Read full article from I Will Get That Job At Google. | Instanceof vs class name check. Performance test
No comments:
Post a Comment