Re: Patch to do not write in chunks to filesystem



Approved

On Thu, 2008-10-16 at 12:49 +0200, Sergio Villar Senin wrote:
> Hi,
> 
> we found in Modest that writing data (like saving a draft to a local
> folder) to the internal flash of devices like N810 is terribly slow. The
> problem was that we shouldn't use the write in chunks code that was
> added to the camel_write function in camel-file-utils.c
> 
> Writing a big file in chunks of 64 bytes to a flash memory is horrible
> because they're especially slow in writings.
> 
> This patch adds a new function that is like camel_write but receives a
> new argument that tells it to write in chunks or not. The camel_write
> function will NOT write in chunks (this way the old behaviour is
> restored). The function that will use the write in chunks feature will
> be camel_write_socket, that's it, operations that write in raw tcp
> connections.


-- 
Philip Van Hoof, freelance software developer
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
http://pvanhoof.be/blog
http://codeminded.be



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]