changed foreach() reindexing of segment arrays to array_unshift() - teensy tiny memory and speed improvement.
diff --git a/system/libraries/URI.php b/system/libraries/URI.php
index 4d0cd9c..8d979d0 100644
--- a/system/libraries/URI.php
+++ b/system/libraries/URI.php
@@ -246,22 +246,9 @@
 	 */	

 	function _reindex_segments()

 	{

-		$i = 1;

-

-		foreach ($this->segments as $val)

-		{

-			$this->segments[$i++] = $val;

-		}

-

+		array_unshift($this->segments, NULL);

+		array_unshift($this->rsegments, NULL);

 		unset($this->segments[0]);

-		

-		$i = 1;

-		

-		foreach ($this->rsegments as $val)

-		{

-			$this->rsegments[$i++] = $val;

-		}

-		

 		unset($this->rsegments[0]);

 	}