Browse files

Always check the tail first, even when not sorted

  • Loading branch information...
1 parent b68cb98 commit 3aeff1d34cdcb558eee157bdb9f66cedfe023eb1 @icefox committed Sep 11, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 skwurly.c
View
3 skwurly.c
@@ -303,8 +303,7 @@ char* url_sort(const char* original_url) {
#ifdef TAIL
// optimize for the common case that the params are mostly ordered
int r = 1;
- if (sorted)
- r = *(tail->start) - *(s);
+ r = *(tail->start) - *(s);
if (r < 0) {
parent = &(tail->right);
} else {

0 comments on commit 3aeff1d

Please sign in to comment.