1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-21 22:04:19 +03:00
Zdenek Kabelac 027a55d0fb Optimise _eat_space and _get_token
Makes the code more readable and has a smaller number of memory
accesses thus it's small optimisation as well.

For _get_token() optimize number parsing. Check for '.' char only
if it's not a digit. Move pointer incrementation into one place.

For _eat_space() check only p->te for '\0' in skipping of comment line.
Avoid check for '\0' when we know it is space. Also master while loop
doesn't need checking p->tb for '\0'. We just need to check p->tb
isn't already at the end of buffer. This could give 'extra' loop cycle
if we are already there - but safes memory access in every other case.
2011-03-10 14:51:35 +00:00
..
2011-02-28 19:53:03 +00:00
2011-03-10 14:51:35 +00:00
2010-12-20 13:19:13 +00:00
2011-02-18 14:47:28 +00:00
2011-03-10 12:43:29 +00:00
2011-03-10 12:43:29 +00:00
2011-03-10 12:43:29 +00:00
2011-02-18 14:16:11 +00:00
2011-02-18 14:16:11 +00:00
2011-03-10 14:40:32 +00:00
2011-02-18 14:29:39 +00:00
2011-03-06 17:52:07 +00:00
2011-03-05 12:14:00 +00:00
2011-02-18 14:29:39 +00:00
2011-02-18 14:47:28 +00:00