Rather than pay for multiple passes over the XSL, I prefer to precompile the instructions into a Templates object and be done with the XSL processing.
与其花时间在xsl上进行多次传递,我宁愿将指令预编译到Templates对象中,完成XSL处理。
This benchmark framework first reads all documents into internal memory buffers, then times multiple passes of input and output operations on the documents.
这个基准测试框架首先将所有文档读入内存缓冲区,然后对针对文档的输入和输出操作的多次传递进行计时。
Listing 3 shows the summary method computing the summary statistics, which include the indexes of the minimal and maximal elements, to avoid having to make multiple passes on the data.
清单3演示了计算汇总信息的summary方法,包括求出最小和最大元素的索引,从而避免反复传递数据。
应用推荐