FLASH0 Write Time

, ,

I have a CGI that needs to save POST data to the FSù

I’m noticing that it takes a long time to save to FLASH0
and that the time increase while the FS increase in volume
so when empty

when the FS is empty saving 70Kb takes 4/5 seconds

when the FS contains about 1MB of data saving the same 70Kb takes 90 seconds

and so on

Is this behavior expected or not?


                                   
                               char xml_data[70000] = {};

                               int fd = open(cgi_file_url, O_RDWR | O_CREAT );

				if(fd > 0)
				{
					// Write data to the file

					int bytesWritten = write(fd , xml_data, strlen(xml_data));

					
					close(fd);
                                 }