Speed up IsEqualsToImpl when comparing strings

Description

OSM like maps rules perform a large number of equality checks between string properties and string values, IsEqualTo shows up in profiles because it ends up going through complicated converters logic when two strings are not equal. Optimize that part out, if the two values are of the same class already there is no need to go through complicated machinery.

Environment

None

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

None

Components

Fix versions

Priority

Medium
Configure