开发者

Duplicate file in Isolated Storage

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜