3 ms·
Does it work with huge files? I'm talking about something like 50k lines. Edit: I'm currently trying it with a mere 1.2k JS file (openai mode) it's only 70% do
by thrdbndndn 2y ago
Does it work with huge files? I'm talking about something like 50k lines.
Edit: I'm currently trying it with a mere 1.2k JS file (openai mode) it's only 70% done after 20 minutes. Even if it works therodically with 50k LOC file, I don't think you should try.
- kingsloi 2y agoIt has this in the README > Large files may take some time to process and use a lot of tokens if you use ChatGPT. For a rough estimate, the tool takes about 2 tokens per character to process a file: > echo "$((2 * $(wc -c < yourscript.min.js)))" > So for refrence: a minified bootstrap.min.js would take about $0.5 to un-minify using ChatGPT. > Using humanify local is of course free, but may take more time, be less accurate and not possible with your existing hardware.
- thrdbndndn 2y agoThis only talks about the cost. I'm more concerned about if it can actually deobfuscate such large file (context) and generate useful results.
- jehna1 2y agoIt does work with any sized file, although it is quite slow if you're using the OpenAI API. HumanifyJS works so it processes each variable name separately, and keeps the context size manageable for an LLM. I'm currently working on parallelizing the rename process, which should give orders of magnitude faster processing times for large files.