A search for improved performance in regular expressions
Authors:
- Brendan Cody-KennyBCBrendan Cody-Kenny
- Michael FentonMFMichael Fenton
- Adrian RonayneARAdrian Ronayne
- Eoghan ConsidineECEoghan Considine
- Thomas McGuireTMThomas McGuire
- Michael O'NEillMOMichael O'NEill
Open Access
- 1 July 2017
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1280-1287
Abstract
The primary aim of automated performance improvement is to reduce the running time of programs while maintaining (or improving on) functionality. In this paper, Genetic Programming is used to find performance improvements in regular expressions for an array of target programs, representing the first application of automated software improvement for run-time performance in the Regular Expression language. This particular problem is interesting as there may be many possible alternative regular expressions which perform the same task while exhibiting subtle differences in performance. A benchmark suite of candidate regular expressions is proposed for improvement. We show that the application of Genetic Programming techniques can result in performance improvements in all cases. As we start evolution from a known good regular expression, diversity is critical in escaping the local optima of the seed expression. In order to understand diversity during evolution we compare an initial population consisting of only seed programs with a population initialised using a combination of a single seed individual with individuals generated using PI Grow and Ramped-half-and-half initialisation mechanisms.Keywords
All Related Versions
Funding Information
- Science Foundation Ireland (13/RC/2094)
This publication has 25 references indexed in Scilit:
- locoGP2015
- The Oracle Problem in Software Testing: A SurveyIEEE Transactions on Software Engineering, 2015
- Program BoostingACM SIGPLAN Notices, 2015
- Playing regex golf with genetic programming2014
- Software mutational robustnessGenetic Programming and Evolvable Machines, 2013
- Which is faster2013
- Combining Convergence and Diversity in Evolutionary Multiobjective OptimizationEvolutionary Computation, 2002
- A fast and elitist multiobjective genetic algorithm: NSGA-IIIEEE Transactions on Evolutionary Computation, 2002
- Generating diverse software versions with genetic programming: an experimental studyIEE Proceedings - Software, 1998
- Automated software test data generationIEEE Transactions on Software Engineering, 1990