We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Until now, I've made typescript-json to gather generated functions into an Array.
typescript-json
However, such indirect access to a function makes inlining hard by V8 engine.
Therefore, declare generated function into main scope, then performance would be enhanced by function inlining.
exports.test_create_is_object_simple = (0, _test_is_1._test_is)( "simple object", ObjectSimple_1.ObjectSimple.generate, (input) => { const $io = [ (input) => "object" === typeof input.scale && null !== input.scale && $io[1](input.scale) && "object" === typeof input.position && null !== input.position && $io[1](input.position) && "object" === typeof input.rotate && null !== input.rotate && $io[1](input.rotate) && "object" === typeof input.pivot && null !== input.pivot && $io[1](input.pivot), (input) => "number" === typeof input.x && "number" === typeof input.y && "number" === typeof input.z, ]; return "object" === typeof input && null !== input && $io[0](input); }, ObjectSimple_1.ObjectSimple.SPOILERS, );
exports.test_create_is_object_simple = (0, _test_is_1._test_is)( "simple object", ObjectSimple_1.ObjectSimple.generate, (input) => { const $io0 = (input) => "object" === typeof input.scale && null !== input.scale && $io1(input.scale) && "object" === typeof input.position && null !== input.position && $io1(input.position) && "object" === typeof input.rotate && null !== input.rotate && $io1(input.rotate) && "object" === typeof input.pivot && null !== input.pivot && $io1(input.pivot); const $io1 = (input) => "number" === typeof input.x && "number" === typeof input.y && "number" === typeof input.z; return "object" === typeof input && null !== input && $io0(input); }, ObjectSimple_1.ObjectSimple.SPOILERS, );
The text was updated successfully, but these errors were encountered:
Benchmark #288 and block overfitted tuning
9c753bb
is()
AMD 5900HX
assertType()
validate()
equals()
Intel i5-1135g7
assertEquals()
validateEquals()
stringify()
Sorry, something went wrong.
Complete #288 - performance be enhanced
f5ac77b
b07632a
Merge pull request #289 from samchon/features/fuctional
bab99c1
Close #288, generated functions are optimized
samchon
No branches or pull requests
Until now, I've made
typescript-json
to gather generated functions into an Array.However, such indirect access to a function makes inlining hard by V8 engine.
Therefore, declare generated function into main scope, then performance would be enhanced by function inlining.
Previous Code
Next Code
The text was updated successfully, but these errors were encountered: