Template:CD2/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
See [[Template:CD]] for usage | == 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. | |||
<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