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

Remove Maybe from the Vertex type #10

Closed w0rm closed 3 years ago

w0rm commented 3 years ago

This reduces allocations of Just and improves the performance by a few % when compared to JSON.

Before:

Screenshot 2021-02-07 at 00 27 52

After:

Screenshot 2021-02-07 at 00 13 36