Template:CD2/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 3: Line 3:


The difference between this and CD is the implementation of the template.
The difference between this and CD is the implementation of the template.
This template repeatedly calls [[Template:CD/superclass]] to build hierarchy while CD template calls that only once and the rest builds from "nodes" (another templates needed to be defined that are pieces of the class hierarchy).
This template repeatedly calls [[Template:CD/superclass]] to build hierarchy while CD template calls that only once and the rest builds from "nodes" (another templates needed to be defined that are pieces of the class hierarchy). The result is CD template builds slightly faster.
 
<nowiki>{{CD|Hunter}}</nowiki> shows CPU time usage between ~ 0.068 - 0.11 seconds
 
<nowiki>{{CD2|Hunter}}</nowiki> shows CPU time usage between ~ 0.17 - 0.3 seconds


[[Category:CD template]]
[[Category:CD template]]

Latest revision as of 02:36, 29 June 2024

Usage

See Template:CD for usage.

The difference between this and CD is the implementation of the template. This template repeatedly calls Template:CD/superclass to build hierarchy while CD template calls that only once and the rest builds from "nodes" (another templates needed to be defined that are pieces of the class hierarchy). The result is CD template builds slightly faster.

{{CD|Hunter}} shows CPU time usage between ~ 0.068 - 0.11 seconds

{{CD2|Hunter}} shows CPU time usage between ~ 0.17 - 0.3 seconds