Main Site Documentation

Expected speed of File.Copy on a SD card


#1

I need to copy a file on my SD card but I feel that the speed is rather slow. So what is the expected speed of copying a file onto the same SD card?
With my Kingston 2Gb SD card it takes 30 seconds to copy a 658Kb file, is this normal?
FEZ Panda on a tinkerer kit.
Here is my test program.


using System;
using System.Threading;
using System.IO;
using Microsoft.SPOT;
using Microsoft.SPOT.IO;
using GHIElectronics.NETMF.IO;
using Microsoft.SPOT.Hardware;

using GHIElectronics.NETMF.FEZ;

namespace File_Copy_test
{
    public class Program
    {
        public static void Main()
        {
            PersistentStorage sdPS = new PersistentStorage("SD");
            sdPS.MountFileSystem();

            string rootDirectory = VolumeInfo.GetVolumes()[0].RootDirectory;
            string FileName = rootDirectory + @ "\Test.txt";
            string CopyName = rootDirectory + @ "\TestCopy.txt";

            DateTime StartT, StopT;

            Thread.Sleep(1000);

            Debug.Print("Copy start...");

            StartT = DateTime.Now;
            File.Copy(FileName, CopyName, true);
            StopT = DateTime.Now;

            TimeSpan Tid = StopT - StartT ;

            Debug.Print(Tid.ToString());

        }

    }
}



#2

There is some nice enhancement on file system speed added to firmware coming out in couple days. Give it another try when new firmware is out please


#3

This is good news Gus. Looking forward to the new release.