whats the best way to store animation data?

i’ve written a little translator for Maya which extracts vertex animation data which will be used for character animation, but i don’t know if this is the correct way, because:
a) it takes enormous file space
b) it’s difficult to combine 2 motions
does anyone know how this is done correctly?

Are you storing the vertices for every frame of the animation? The best way is to store only “key” frames (every 5’th frame or something, probably need to research into which methods for selecting key frames) and interpolate between these key frames when you render. That would cut your file down to 1/5th.

Theres also skeletal animation too, which I assume would use far less memory than vertex animation. Alot more complicated though.