This paper proposes physical refactoring and digs into its process and methods. Physical refactoring is a disciplined technique for restructuring the physical structure of a software system, to improve the efficiency of software development, while preserving the system's external behavior. It follows the best practices of refactoring to change the system in small and iterative steps, and applies refactorings according to the standards of physical design. Case studies demonstrate that physical refactoring may continuously improve software quality from the viewpoint of the physical structure.%整合重构的基本思想和物理设计的基本技术,提出了物理重构的概念.它是对软件物理结构的再设计,目的是在不改变软件外在行为的前提下,调整软件组织结构,从而提高软件的开发效率和可维护性等.在此基础上,提出用"识别-重构-评估"的迭代过程来实施物理重构,并介绍了常用的物理重构方法.实例研究表明,物理重构能够有效地优化系统的物理结构,使开发者从多个角度持续改善软件质量.
展开▼