Performance improvements for CSS parsing code

These provide about a 35% performance boost by my testing.