3 ms·
First of all, you're probably bundling your code, stripping comments, have tree-shaking eliminate parts of it. That's already a form of obfuscation. Then, minif
by incrudible 3y ago
First of all, you're probably bundling your code, stripping comments, have tree-shaking eliminate parts of it. That's already a form of obfuscation. Then, minification will affect performance of parsing, it can even affect whether a function gets inlined by the JIT compiler, because character length is a very cheap heuristic. Whether I care about that or not is my judgement call.
- marcosdumay 3y ago> character length is a very cheap heuristic Unless your interpreter is trying to optimize text blocks, op-code length will be cheaper and way easier to develop.
- incrudible 3y agoThe existence of interpreter opcodes implies you have already compiled the code for the interpreter, but with this heuristic you can send this function straight to JIT.