图1中的图表粗略地显示了可管理性和速度与使用的函数数量之间的相互关系。
The chart in Figure 1 shows you a rough idea of the give-and-take relationship between manageability and speed versus the number of functions you use.
在图5中,RegexGroups函数定义与RegexMatches函数定义一样,除了它还返回匹配项中包含组名称的其他数据列。
In Figure 5, the RegexGroups function is defined like the RegexMatches function except that it returns an additional column of data containing the name of the group within the match.
图5展示了分析结果:与上次的3192次函数调用相比,这里仅需要30次调用(并且只有一半的调用需要计算结果),而时间则减少为只有20毫秒。
Figure 5 shows the analysis: Instead of 3,192 function calls, only 30 were required (and only half of those computed any result), and time was reduced to 20 milliseconds.
应用推荐