Difference between revisions of "Module:Sandbox/Arcangelus/doc"

From RimWorld Wiki
Jump to navigation Jump to search
m
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
==Description==
 
==Description==
 
This is a doc attached to my sandbox. I'll use it to see the effects of my changes W/o messing something important
 
This is a doc attached to my sandbox. I'll use it to see the effects of my changes W/o messing something important
 +
 +
NOTE: LUA is usually slower than ParserFunctions for short statements. The factor varies from 7-1 to 2-1.<br/>
 +
Lua only is an advantage to long statements, nested logic, loops (maybe others case i don't see right now).
 
<!--
 
<!--
 
Hello function:
 
Hello function:
 
{{#invoke:Sandbox/Arcangelus|hello}}-->
 
{{#invoke:Sandbox/Arcangelus|hello}}-->
 +
 +
expr only uses 1 Preprocessor visited node count, in general. Variables may change that.
 
-----
 
-----
Calculo 1 ['''SkillValue''']: Lua slower (by a lot)
+
function p._TableRow(skillBase, skillBonus, statMin, statMax, capImportance, capLimit, resultCols, LV, Ln)
Module: {{#invoke:Sandbox/Arcangelus|SkillValue|2|3|4}}
+
 
2+3*4 = {{#expr: 2 + 3*4}}
+
<!--{{#invoke:Sandbox/Arcangelus|spliting|"Texto a separar"|" "|2}}-->
-----
+
 
Calculo 2 ['''twomult''']: Lua slower (by a lot)
+
<!--{{#invoke:Sandbox/Arcangelus|test|}}-->
Module: {{#invoke:Sandbox/Arcangelus|twomult|2|3}}
 
2*3 = {{#expr: 2 * 3}}
 
-----
 
Calculo 3 ['''sum''']: Lua slower (by a lot)
 
Module: {{#invoke:Sandbox/Arcangelus|sum|1|2|3|4|5}}
 
1+2++3+4+5 = {{#expr: 1+2++3+4+5}}
 
-----
 
Calculo 4 ['''potencia''']
 
Module: {{#invoke:Sandbox/Arcangelus|potencia|10|5}}
 
10^5 = {{#expr: 10^5}}
 

Latest revision as of 18:05, 21 August 2024

Welcome to the RimWorld Wiki sandbox!
This sandbox is where you can experiment and practice working on a wiki page. This page will usually have little or no content. Feel free to add content or to make changes and save them to see the results.

To learn about editing and formatting start here: Help:Contents. Just start with the basics... enter some text, and learn the other pieces as you go.

Your content contributions are welcome and important. The wiki is a collaborative effort and others can help with formatting and other improvements.]

Best wishes!

Description[edit]

This is a doc attached to my sandbox. I'll use it to see the effects of my changes W/o messing something important

NOTE: LUA is usually slower than ParserFunctions for short statements. The factor varies from 7-1 to 2-1.
Lua only is an advantage to long statements, nested logic, loops (maybe others case i don't see right now).

expr only uses 1 Preprocessor visited node count, in general. Variables may change that.


function p._TableRow(skillBase, skillBonus, statMin, statMax, capImportance, capLimit, resultCols, LV, Ln)