Prechádzať zdrojové kódy

major optimizations

Christopher 5 rokov pred
rodič
commit
40a78c81f2
1 zmenil súbory, kde vykonal 7 pridanie a 1 odobranie
  1. 7 1
      mass-rename-v2.php

+ 7 - 1
mass-rename-v2.php

@@ -4,7 +4,7 @@
 //	www.dbmxpca.com
 //	Date Created: May 18, 2020
 //	Last Updated: May 19, 2020
-//	     Version: 2.01
+//	     Version: 2.02
 
 //	====================================================================================
 //	--- SETTINGS --- SETTINGS --- SETTINGS --- SETTINGS --- SETTINGS --- SETTINGS ---
@@ -263,6 +263,9 @@ foreach ($contents as $c){
 $script_time_end = microtime(true);
 $script_runtime = $script_time_end - $script_time_start;
 
+//	Cleanup items no longer needed.
+$contents = null;
+
 echo " > Base content map creation complete [" . $script_runtime . " ms].\n";
 $total_items_old = count($content_map);
 //	Account for zero-based indexing.
@@ -311,6 +314,9 @@ if ($total_items > 0)
 $script_time_end = microtime(true);
 $script_runtime = $script_time_end - $script_time_start;
 
+//	Cleanup items no longer needed.
+$content_map = null;
+
 echo " > Success: new content map created [" . $script_runtime . " ms].\n";
 echo " > FILE AND DIRECTORY PREVIEW:\n ================================\n";