zth / rescript-relay-router

MIT License
16 stars 3 forks source link

Reduce generated code size #49

Closed zth closed 2 years ago

zth commented 2 years ago

Closes https://github.com/zth/rescript-relay-router/issues/9

This might be a bit hard to review/overview, but essentially what I've done is I've added a few unsafe things to the internal generated route code, that allow us to draw down the generated code size by a lot. This should still be safe for anyone using the router, since the unsafe code isn't exposed in any way to the outside.

I guess this says it all:

image

😄