kevin-montrose / Cesil

Modern CSV (De)Serializer
MIT License
65 stars 3 forks source link

Teach the ReadStateMachine how to skip leading whitespace in values #5

Open kevin-montrose opened 4 years ago

kevin-montrose commented 4 years ago

Cesil can optionally strip whitespace around values. Some of this requires processing outside of the ReaderStateMachine that is responsible to the core parsing pass.

There are two places where processing is not technically required, but has not yet been moved into the state machine.

This change will probably lead to a small performance improvement, as the branches involved should be entirely eliminated.