I have to sample a sensor on a raspi at at rate of 1 million samples/second for around 30 seconds. Each sample is 6 characters How do I store this data without slowing down the program? I can save it in memory until after the sample time, or store it directly to the disk. Any help would be appreciated.