- Timestamp:
- Jan 23, 2015 3:01:42 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 97822
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/VBox-CodingGuidelines.cpp
r44528 r53944 258 258 * - All files like .cpp, .h, .ui, which belong together are located in the 259 259 * same directory and named the same 260 * 261 * 262 * @subsection sec_vbox_guideline_compulsory_xslt XSLT 263 * 264 * XSLT (eXtensible Stylesheet Language Transformations) is used quite a bit in 265 * the Main API area of VirtualBox to generate sources and bindings to that API. 266 * There are a couple of common pitfalls worth mentioning: 267 * 268 * - Never do repeated //interface[@name=...] and //enum[@name=...] lookups 269 * because they are expensive. Instead delcare xsl:key elements for these 270 * searches and do the lookup using the key() function. xsltproc uses 271 * (per current document) hash tables for each xsl:key, i.e. very fast. 272 * 273 * - When output type is 'text' make sure to call xsltprocNewlineOutputHack 274 * from typemap-shared.inc.xsl every few KB of output, or xsltproc will 275 * end up wasting all the time reallocating the output buffer. 260 276 * 261 277 *
Note:
See TracChangeset
for help on using the changeset viewer.