Eliminate repeated virtual calls
Merge pull request #214 from Dmitry-Me/duplicateVirtualCalls

Eliminate repeated virtual calls