getty-zig / getty

A (de)serialization framework for Zig
https://getty.so
MIT License
189 stars 13 forks source link

de: Set evaluation branch quota #104

Closed ibokuri closed 1 year ago

ibokuri commented 1 year ago

Setting the quota based on the number of fields didn't work out. The formula I used was 1000 + (fields.len * 2) + (fields.len * fields.len). That got me close to the actual quota I needed but there was some extra branches that I couldn't account for. So, I decided instead to do away with the half-working solution and just set a nice large arbitrary quota.

Considering how #103 only needs 1,708 branches, the quota of 10,000 seems reasonable to me.

Closes #103.