为了避免这种疯狂编译,将该临时表的声明移至一个单独过程中会更合适一些,该过程只在启动工作负载时执行一次。
To avoid this compilation frenzy, it is much more appropriate to move the declaration of the temp into a separate procedure, which is executed once when the workload is started.
要允许这样做,已编译的样式表在执行时应该严格是只读的,以允许在多个执行线程中同时使用它。
To allow this, the compiled style sheet is strictly read-only at execution time, allowing it to be used in multiple execution threads simultaneously.
这种方法改善了XSLT的性能,因为每个样式表只要解析和编译一次,就可以在以后的转换中反复使用。
This approach greatly improves the XSLT performance, since each stylesheet is parsed and compiled only once and reused for each subsequent transformation.
我们需要的是这样一个程序,它可以生成这些结果,并将其输出到上面这样的表中,这样就可以在编译时加载了。
What is needed is a program that will produce these values and print them out in a table like the previous one so they are loaded in at compile-time.
应用程序准备(编译)好一条语句之后,可以修改语句对象——表、索引、统计信息。
After a statement has been prepared (compiled) by the application, the statement objects — tables, indexes, statistics — can be altered.
您可能记得,我在上一篇文章展示了使用一个样式表将一些新特性编译进另一个样式表这个概念。
As you may remember, my previous article demonstrated the concept of using a stylesheet to compile new features into another stylesheet.
本文的下载中包含一个名为sample1\RadiologyService的文件夹,在这里您将发现RadiologyDepartment类的代码和一个已编译的类表。
This article's download contains a folder named sample1\RadiologyService, where you'll find both the code for the RadiologyDepartment class and a compiled form of the class.
对于此示例,我们将通过编译我们的外部样式表bspace_skin . css将主题打包到SWF文件中。
For this sample, we've packaged the theme into an SWF file by compiling our external style sheet, BSpace_Skin.css.
我已经描述了Saxon所做的第一件事就是将样式表“编译”成装饰树以便以后能够有效地执行。
I have already described how the first thing Saxon does is to "compile" the style sheet into a decorated tree for efficient execution subsequently.
在样式表编译阶段完成的一些任务如下
Some of the tasks done during the style sheet compilation phase are as follows
如果您将属性值添加到窗体及其控件的属性表,则VisualStudio会在幕后于一个已编译为非特定程序集的资源文件中维护它们。
As you add property values into the property sheet for the form and its controls, Visual Studio maintains them in a resource file behind the scenes that is compiled into the neutral assembly.
另一个好处是在所有平台上都支持编译的样式表,从而提高以前版本在实现上的性能。
Another benefit is that compiled stylesheets are supported on all platforms, improving performance over the implementation in the previous release.
在启动时,平台装入所有已安装的插件的清单,然后编译一个注册表。
Upon startup, the platform loads the manifests of all installed plug-ins and compiles a registry.
编译器可以将这个指示符存储在它的符号表中,并在中间代码生成阶段使用这个指示符。
The compiler can store this directive in its symbol table and use it during the intermediate code generation phase.
它的工作方式是:从预处理源代码和用于编译源代码的编译器选项创建一个哈希表。
It works by creating a hash from the preprocessed sources and the compiler options used to compile the sources.
如果为cgtt表创建了索引,则查询编译器会将这些索引考虑在内。
If indexes are created on the CGTT table, the query compiler will take those indexes into account.
很多编译器通过将表放入只读内存中可以生成更高效的代码。
Many compilers can generate more efficient code for this by putting the tables in read-only memory.
用元语言编写的测试案例,只需编写一次就可以使用样式表所采用的任何语言进行编译和执行,从而确保相同的测试可以应用到任何地方。
A test case written once in the meta-language can be compiled and executed in any language they have a stylesheet for, ensuring that the same tests are applied everywhere.
第一个是编译器,它接受应用处理程序,并创建一个 表类。
The first is a compiler that accepts the application handler and creates a table class.
样式表编译器在执行之前对样式表进行分析。
The style sheet compiler analyses the style sheet prior to execution.
如果连接失败,或者该表已删除,那么每次重新声明这个表时,都需要重新编译引用DGTT的任何语句。
If the connection is lost or the table is dropped, any statement referring to the DGTT needs to be recompiled every time the table is re-declared.
这些特性包括枚举支持、空间数据类型、自动编译LINQ查询、表值函数和多结果存储过程。
These include Enum support, Spatial data types, auto-compiled LINQ queries, Table-Valued functions, and stored procedures with multiple results.
数据库服务器自动发出PREPARE命令,更新引用该表的任何编译过的对象。
The database server automatically issues the prepare statement to update any prepared objects that reference the table.
因此样式表编译器构造了决策树,在运行时用它来决定将哪个模板规则应用于给定节点。
The style sheet compiler therefore constructs a decision tree which is used at run time to decide which template rule to apply to a given node.
在考虑这种方法时,xslt样式表实际上是定义新语言的工具,并且可被视为语言编译器。
When thought of this way, an XSLT stylesheet is actually a tool for defining new languages, and can be thought of as a language compiler.
下面的表1显示了不受THREAD编译器选项支持、应当避免的语言元素。
Table 1 below shows what language elements to avoid that are not supported by the THREAD compiler option.
下面的表3列出了三个程序例子:一个c语言编译的主程序和两个COBOL程序。
Table 3 below lists three program examples: a C main program and two COBOL programs.
如果编译环境或表统计信息在explain语句执行时已经发生改变,那么编译器可能会生成一个不同的访问计划。
If the compilation environment or table statistics have changed when the explain statement is issued, the compiler may generate a different access plan.
也可以在sample1 \RadiologyService文件夹中的资源和已编译的表中找到这些文件。
You can also find these files in both source and compiled form in the sample1 \ RadiologyService folder.
使用switch/case也可以通过使用跳转表实现进行编译器优化。
The use of switch/case also enables compiler optimization by using a jump table implementation.
应用推荐