Przeglądaj źródła

converted performances.txt to markdown

Ken Stowe 3 lat temu
rodzic
commit
1d5576e43b
2 zmienionych plików z 28 dodań i 24 usunięć
  1. 28 0
      kemi/performances.md
  2. 0 24
      kemi/performances.txt

+ 28 - 0
kemi/performances.md

@@ -0,0 +1,28 @@
+# KEMI Performances
+
+This page collects details about performance results for KEMI
+interpreters as well as tips and tricks to increase the processing
+capacity when using KEMI.
+
+## Performance Tests
+
+-   [KEMI Performance Tests For v5.2.x](/kemi/performance-tests/5.2.x)
+
+## Tips And Tricks
+
+### Variables
+
+With some scripting languages such as Lua it was observed that is better
+to store the value of a Kamailio pseudo-variables inside a local
+variable if used many times. For example:
+
+``` lua
+    if KSR.corex.has_user_agent() then
+        local K_ua = KSR.pv.gete("$ua");
+        if string.find(K_ua, "friendly-scanner")
+                or string.find(K_ua, "sipcli") then
+            KSR.sl.sl_send_reply(200, "OK");
+            KSR.x.exit();
+        end
+    end
+```

+ 0 - 24
kemi/performances.txt

@@ -1,24 +0,0 @@
-====== KEMI Performances ======
-
-This page collects details about performance results for KEMI interpreters as well as tips and tricks to increase the processing capacity when using KEMI.
-
-===== Performance Tests =====
-
-  * [[kemi:performance-tests:5.2.x|KEMI Performance Tests For v5.2.x]]
-
-===== Tips And Tricks =====
-
-==== Variables ====
-
-With some scripting languages such as Lua it was observed that is better to store the value of a Kamailio pseudo-variables inside a local variable if used many times. For example:
-
-<code lua>
-	if KSR.corex.has_user_agent() then
-		local K_ua = KSR.pv.gete("$ua");
-		if string.find(K_ua, "friendly-scanner")
-				or string.find(K_ua, "sipcli") then
-			KSR.sl.sl_send_reply(200, "OK");
-			KSR.x.exit();
-		end
-	end
-</code>