Does px4 .plan mission reading is bufferized?

I’m developing a new application that generates .plan mission files, with durations ranging from 20 to 30 minutes.

I need to know if PX4 reads the .plan mission file in a buffered streaming manner, or does it load the entire file into memory all at once?

This information is crucial for determining my file generation strategy.

A .plan file is converted to MISSION_ITEM_INT to be uploaded to PX4. PX4 stores the mission items using the module “dataman” which will store them on the Micro SD card (for any autopilot that has one). This means that it is “buffered” on the Micro SD card.