开发者

Duplicate file in Isolated Storage

开发者 https://www.devze.com 2023-02-12 12:50 出处:网络
I hope this is not a stupid question. So, I simply w开发者_开发百科ant to duplicate a file from the Isolated Storage to be used as a backup. However, speed is really important in this case and I wonde

I hope this is not a stupid question. So, I simply w开发者_开发百科ant to duplicate a file from the Isolated Storage to be used as a backup. However, speed is really important in this case and I wondered what's the fastest way to do that. Should I open the file from the IS, read it to a stream, then create a backup file and write to it, well from what I've seen so far this will take at least half a second which is a lot.


There's no API for copy/duplicate so yes, your answer is the best way.

If you want to avoid the half a second delay then you'll need to do that via your application design - e.g. writing new data to a new file, or perhaps using smaller files.

If you're interested in the details of IsolatedStorage performance, then this blog has done a superb analysis: http://appangles.com/blogs/mickn/wp7/?p=6

0

精彩评论

暂无评论...
验证码 换一张
取 消