Click here to Skip to main content
15,891,704 members
Home / Discussions / C#
   

C#

 
AnswerRe: Performance of FileStream, scale is stalking me Pin
Eddy Vluggen19-Aug-15 4:49
professionalEddy Vluggen19-Aug-15 4:49 
GeneralRe: Performance of FileStream, scale is stalking me Pin
Rob Philpott19-Aug-15 4:52
Rob Philpott19-Aug-15 4:52 
GeneralRe: Performance of FileStream, scale is stalking me Pin
Eddy Vluggen19-Aug-15 4:54
professionalEddy Vluggen19-Aug-15 4:54 
GeneralRe: Performance of FileStream, scale is stalking me Pin
Rob Philpott19-Aug-15 5:09
Rob Philpott19-Aug-15 5:09 
GeneralRe: Performance of FileStream, scale is stalking me Pin
Eddy Vluggen19-Aug-15 7:09
professionalEddy Vluggen19-Aug-15 7:09 
GeneralRe: Performance of FileStream, scale is stalking me Pin
Rob Philpott19-Aug-15 7:18
Rob Philpott19-Aug-15 7:18 
GeneralRe: Performance of FileStream, scale is stalking me Pin
Eddy Vluggen19-Aug-15 8:11
professionalEddy Vluggen19-Aug-15 8:11 
AnswerRe: Performance of FileStream, scale is stalking me Pin
Afzaal Ahmad Zeeshan19-Aug-15 5:41
professionalAfzaal Ahmad Zeeshan19-Aug-15 5:41 
I would say that this is just a bad way to code. Why in the first place do you need to use a file that spans over to 3GB and then you say you want to go to a file size that spans over to 32GB+ or 100GB. Why, why do you want to do that to .NET framework?

I would like to recommend that you convert the file to small chunks of bytes. 1GB can be converted to 10 chunks of 100 MB each. This would allow you to work with all of them in a pretty much quick way.

The problem is that .NET framework supports objects of 2GB, your files of that much size needs to come to memory and .NET wastes most of the cycles just to keep the content of your files in the RAM. That is why, when the file size increases the process takes longer, because it has to make sure the resources are kept in memory and the managed framework has control of the resources also. As suggested, keep the chunk size to 100MB at max and then work on them separately.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

GeneralRe: Performance of FileStream, scale is stalking me Pin
Rob Philpott19-Aug-15 5:52
Rob Philpott19-Aug-15 5:52 
GeneralRe: Performance of FileStream, scale is stalking me Pin
Afzaal Ahmad Zeeshan19-Aug-15 5:58
professionalAfzaal Ahmad Zeeshan19-Aug-15 5:58 
GeneralRe: Performance of FileStream, scale is stalking me Pin
Rob Philpott19-Aug-15 6:10
Rob Philpott19-Aug-15 6:10 
GeneralRe: Performance of FileStream, scale is stalking me Pin
Pete O'Hanlon19-Aug-15 6:18
mvePete O'Hanlon19-Aug-15 6:18 
QuestionMSBuild The type or namespace name 'Class1' could not be found (are you missing a using directive or an assembly reference?) error Pin
Txalaparta18-Aug-15 23:18
professionalTxalaparta18-Aug-15 23:18 
QuestionRe: MSBuild The type or namespace name 'Class1' could not be found (are you missing a using directive or an assembly reference?) error Pin
Eddy Vluggen19-Aug-15 0:44
professionalEddy Vluggen19-Aug-15 0:44 
AnswerRe: MSBuild The type or namespace name 'Class1' could not be found (are you missing a using directive or an assembly reference?) error Pin
Txalaparta19-Aug-15 2:05
professionalTxalaparta19-Aug-15 2:05 
GeneralRe: MSBuild The type or namespace name 'Class1' could not be found (are you missing a using directive or an assembly reference?) error Pin
Eddy Vluggen19-Aug-15 2:39
professionalEddy Vluggen19-Aug-15 2:39 
QuestionSession Ends after any change made in asp.net Pin
Salman Azhar18-Aug-15 22:10
Salman Azhar18-Aug-15 22:10 
QuestionGet all the network activity data in Resouce Monitor Pin
LeHuuTien18-Aug-15 20:35
LeHuuTien18-Aug-15 20:35 
AnswerRe: Get all the network activity data in Resouce Monitor Pin
Richard MacCutchan18-Aug-15 22:00
mveRichard MacCutchan18-Aug-15 22:00 
GeneralRe: Get all the network activity data in Resouce Monitor Pin
LeHuuTien19-Aug-15 16:23
LeHuuTien19-Aug-15 16:23 
GeneralRe: Get all the network activity data in Resouce Monitor Pin
Richard MacCutchan19-Aug-15 20:51
mveRichard MacCutchan19-Aug-15 20:51 
AnswerRe: Get all the network activity data in Resouce Monitor Pin
Nitzan Levi19-Aug-15 9:57
Nitzan Levi19-Aug-15 9:57 
GeneralRe: Get all the network activity data in Resouce Monitor Pin
LeHuuTien19-Aug-15 16:05
LeHuuTien19-Aug-15 16:05 
Questionertan tike dayview calendar control Pin
Member 1189642718-Aug-15 20:01
Member 1189642718-Aug-15 20:01 
AnswerRe: ertan tike dayview calendar control Pin
Pete O'Hanlon18-Aug-15 21:27
mvePete O'Hanlon18-Aug-15 21:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.