God Class

From a performance perspective, a “god” class creates problems by causing excessive message traffic. In the behavioral form of the problem, the excessive traffic occurs as the “god” class requests and updates the data it needs to control the system from subordinate classes. In the data form, the problem is reversed as subordinates request and update data in the “god” class. In both cases, the number of messages required to perform a function is larger than it would be in a design that assigned related data and behavior to the same class.

Related smells: God Class

Reference

C. U. Smith, L. G. Williams. “Software performance antipatterns”. WOSP 2000, pp. 127-136.


Performance Smells

Home

All rights reserved (c) Tushar Sharma 2017-23.