removed the array_diff comparison in _reindex_segments(). That conditional and use of those functions is probably slower than looping through both arrays, even if someone went crazy with dozens of URI segments.
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index dc3cabc..78a3d98 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -78,6 +78,7 @@
<li>Modified xss_clean() to be more intelligent with its handling of URL encoded strings.</li>
<li>Added $_SERVER, $_FILES, $_ENV, and $_SESSION to sanitization of globals.</li>
<li>Added a <a href="./helpers/path_helper.html">Path Helper</a>.</li>
+ <li>Simplified _reindex_segments() in the URI class</li>
</ul>
</li>
</ul>