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
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.
I'm looking to fully interpret the file to extract animation data, likely for converting it to a Blender armature.