搜索正则表达式的改进性能
A Search for Improved Performance in Regular Expressions
摘要:
自动化性能改进的主要目的是减少程序的运行时间,同时保持(或改进)功能。在本文中,遗传编程是用来找到性能改进的正则表达式的阵列的目标程序,代表第一个应用程序的自动化软件改进的运行时性能的正则表达式语言。这个特殊的问题是有趣的,因为可能有许多可能的替代正则表达式,它们执行相同的任务,同时表现出细微的性能差异。提出了一套候选正则表达式的基准测试以供改进。我们表明,遗传编程技术的应用可以导致在所有情况下的性能改善。当我们从一个已知的好的正则表达式开始进化时,多样性对于逃离种子表达式的局部最优值至关重要。为了了解多样性在进化过程中,我们比较了一个初始人口组成的唯一的种子程序与人口初始化使用一个单一的种子个人与个人使用PI增长和斜坡一半和一半的初始化机制产生的组合。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。