Structured merge with auto-tuning: balancing precision and performance
Authors:
Open Access
- 3 September 2012
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 120-129
Abstract
Software-merging techniques face the challenge of finding a balance between precision and performance. In practice, developers use unstructured-merge (i.e., line-based) tools, which are fast but imprecise. In academia, many approaches incorporate information on the structure of the artifacts being merged. While this increases precision in conflict detection and resolution, it can induce severe performance penalties. Striving for a proper balance between precision and performance, we propose a structured-merge approach with auto-tuning. In a nutshell, we tune the merge process on-line by switching between unstructured and structured merge, depending on the presence of conflicts. We implemented a corresponding merge tool for Java, called JDime. Our experiments with 8 real-world Java projects, involving 72 merge scenarios with over 17 million lines of code, demonstrate that our approach indeed hits a sweet spot: While largely maintaining a precision that is superior to the one of unstructured merge, structured merge with auto-tuning is up to 12 times faster than purely structured merge, 5 times on average.Keywords
This publication has 13 references indexed in Scilit:
- Operation-based conflict detection and resolution2009
- Refactoring-Aware Configuration Management for Object-Oriented Programs2007
- JDiff: A differencing technique and tool for object-oriented programsAutomated Software Engineering, 2006
- Merging Models with the Epsilon Merging Language (EML)2006
- A generic approach to supporting diagram differencing and merging for collaborative design2005
- A state-of-the-art survey on software mergingIEEE Transactions on Software Engineering, 2002
- Software mergeACM Transactions on Programming Languages and Systems, 1994
- Some MAX SNP-hard results concerning unordered labeled treesInformation Processing Letters, 1994
- Operation-based merging1992
- Structure-oriented merging of revisions of software documents1991