While profiling a scene with many objects, I noticed some unexpected functions taking a significant time of depsgraph creation/evaluation. String length calculation and equality comparison was taking longer than it should, and some simple methods were appearing in profiles that should be inlined instead. There are more places where this sort of change would be helpful, this commit just changes places using `OperationIDKey` and `ComponentIDKey`. Pull Request: https://projects.blender.org/blender/blender/pulls/136795