1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-03-02 10:21:49 -05:00
Dan McGee 499e09734b Streamline alpm_splitdep() comparisons
This reduces from 5 to 3 the number of searches needed on the string
looking for a comparison operator, since we can so a second quick
comparison looking for '=' if we find '<' or '>'. It also makes every
search doable with strchr() or memchr() rather than the slower strstr()
method.

In testing, only 10% of splitdep calls (~1600 / 16000) during an -Ss
database load found a version comparison operator, so optimizing the not
found path to be require less work makes sense.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-29 19:54:18 -05:00
..
2011-08-19 11:09:57 -05:00
2011-06-28 14:04:00 +10:00
2011-07-02 02:01:39 +10:00
2011-08-28 23:41:17 -05:00
2011-08-15 06:24:49 -05:00
2011-08-15 06:24:49 -05:00
2011-08-28 23:49:27 -05:00
2011-08-28 23:49:27 -05:00
2011-08-18 10:47:41 -05:00
2011-06-28 23:28:23 +10:00
2011-08-29 19:54:18 -05:00
2011-06-28 14:04:00 +10:00
2011-06-28 23:28:24 +10:00
2011-06-28 23:28:24 +10:00
2011-07-18 21:06:24 -05:00
2011-07-02 02:01:39 +10:00
2011-06-28 23:28:24 +10:00
2011-08-28 23:41:17 -05:00
2011-06-28 23:28:24 +10:00
2011-06-28 23:28:24 +10:00
2011-07-05 22:36:40 -05:00
2011-07-06 09:26:09 -05:00
2011-08-28 19:52:10 -05:00
2011-06-28 14:04:00 +10:00
2011-08-15 12:13:35 -05:00