You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type overrides are checked linearly for every codegen'd type.
That linear check currently compiles a regexp pattern for every override
that's considered. This commit adds a simple memoizing cache so that
each pattern is only ever compiled once. This dramatically improves
performance of sqlc for users who have many overrides. ngrok's usage
of sqlc generate sees a 10x speedup from this change (4s -> 0.4s).
0 commit comments