-
Notifications
You must be signed in to change notification settings - Fork 7
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
Why Uglify? #14
Comments
@moll , uglify was put to be able to create readable code for debugging purposes and also to remove any dead code that was generated. I will be removing it in a future release and leave it for the user to decide how he wants to compress or minify the generated validator. |
Great. Currently I think Themis has to be the slowest validator library evar because of that. Hundreds of milliseconds per |
Moving it to be an optionalDependency might be a good... I see it as useful when compiling schemas upfront.. as one would be willing to pay for the cost... |
Is this project maintained anymore? The uglify dependency has a critical security error according to npm audit. Could we get it removed or updated? I can submit a pull request if that will help. |
Hey,
Why the dependency on UglifyJS? It's a build-minification tool. Wouldn't a plain
eval
be sufficient as you already do after piping everything through Uglify? Especially given that the default is to not compress the code. It would definitely be faster without involving Uglify, which I've got a feeling is to blame for the 300ms+ time spent compiling a single schema. ;-)If people wish to compress the code as they see fit, dependency injection (a.k.a pass a function in) would be a decent solution.
The text was updated successfully, but these errors were encountered: