How can I quickly parse a 5 million line UnityYAML file?

0
1
Asked By CuriousCoder42 On

I'm working on parsing a massive Unity AnimationCâip file that has 5 million lines, and I need to do it efficiently using C++, Java, or Python. My goal is to parse this file in 20 seconds or less. Just to be clear, I don't have Unity. Additionally, I've tried using PyYaml and the UnityParser packages, but both take way too long, usually 10-30 minutes, which is unacceptable for my needs.

1 Answer

Answered By QuickThinker87 On

What exactly are you hoping to do with the parsed file? If it's just searching for a string, that's easier than fully interpreting the animation data. C++ or Java should be fine for handling 5 million lines without much trouble, but Python might slow you down depending on your objectives.

CuriousCoder42 -

I'm looking to fully interpret the file to extract animation data, likely for converting it to a Blender armature.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.