I thought "instanceof" was expensive, but I just wrote a performance test that suggests it's not.Wonder if something is being optimised out?
@mjpt777 @trisha_gee Very cheap vs design smell... Bugger, coin toss? :)
-
-
@darachennis@trisha_gee Need more context -
@mjpt777@trisha_gee Very true. Harder with 'design smells' though, always good to get a 2nd, 3rd opinion when unsure... - 5 more replies
New conversation -
-
-
@darachennis@mjpt777 Yep t is a design smell. But this is a library where developers chuck in random objects and I need to find an encoder.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.