-
-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize assertType()
and validate()
function
#281
Comments
Became much slower... |
assertType()
code to throw only at onceassertType()
and validate()
function
Close #281 - optimize `assertType()` and `validate()`
Complement #281 - make `validate()` shorter
Complement #281 - `assertType@v3` became faster
|
Current
assertType()
function has programmed to throws an exception directly when found an invalid type through if condition. Therefore, too much throw exception statements are written in generated code and it makes iteration speed slower. However, if I change the program to throw only at once in the last line, the iteration speed would be faster.Current code
Future
The text was updated successfully, but these errors were encountered: