w0rm / elm-obj-file

Encode and decode 3D geometry in the OBJ file format
https://package.elm-lang.org/packages/w0rm/elm-obj-file/latest
BSD 3-Clause "New" or "Revised" License
24 stars 4 forks source link

Improve parsing #6

Closed w0rm closed 3 years ago

w0rm commented 3 years ago

Instead of splitting strings, we could split by words and then use the first element from the list to determine the command.

Parsing triangles have become 7% faster:

Screenshot 2021-01-26 at 15 48 20