tag:blogger.com,1999:blog-6013019333081665053.post745642508742798939..comments2023-07-02T18:46:10.240-07:00Comments on Feroze's musings on Technology: Socket.SendFile - Implementing fast file transferFeroze Daudhttp://www.blogger.com/profile/02314158942083686821noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-6013019333081665053.post-4710046650245302282012-06-11T07:28:54.244-07:002012-06-11T07:28:54.244-07:00When I set the buffer size to 1 MB in SendFile1 it...When I set the buffer size to 1 MB in SendFile1 it is about the same speed as SendFile2, thuough with less consistency. Doing that and using a 100 MB file to test, SendFile1 is slightly faster than SendFile2.Clayton Stangelandnoreply@blogger.comtag:blogger.com,1999:blog-6013019333081665053.post-55709384969724896482011-01-27T17:08:43.315-08:002011-01-27T17:08:43.315-08:00I did an end to end comparison because TransmitFil...I did an end to end comparison because TransmitFile (Winsock API) also reads the file and send it over the network. So, excluding the time to read the file will not yield an apples to apples comparison.Feroze Daudhttps://www.blogger.com/profile/02314158942083686821noreply@blogger.comtag:blogger.com,1999:blog-6013019333081665053.post-27719422706365780642011-01-18T22:08:57.239-08:002011-01-18T22:08:57.239-08:00i cannot send you the modified code. i dont have y...i cannot send you the modified code. i dont have your mail. comment is limited to 4096 characters only. my mail is bukan dot ijam //at// gmail dote com.bukan iJamhttps://www.blogger.com/profile/11060432032766743638noreply@blogger.comtag:blogger.com,1999:blog-6013019333081665053.post-50157555227200745782011-01-18T22:05:56.559-08:002011-01-18T22:05:56.559-08:00There a problem with your measurement.
1. you sho...There a problem with your measurement. <br />1. you should start the measurement on EXACTLY the process that you want to measure. Do not include the time to openfile, readfile, seeking etc.<br />2. calling multiple read will definitely cause overhead. you should increase the buffer to what you expect the buffer to allocate.<br /><br />this is the new results<br />0 1024 0.0396<br />1 1024 0.0321<bukan iJamhttps://www.blogger.com/profile/11060432032766743638noreply@blogger.comtag:blogger.com,1999:blog-6013019333081665053.post-49195593152788308152011-01-18T20:23:11.079-08:002011-01-18T20:23:11.079-08:00After removing/commenting line 220, i got this err...After removing/commenting line 220, i got this error <br />An attempt was made to access a socket in a way forbidden by its access permissions at line 194.<br /><br />thanks.bukan iJamhttps://www.blogger.com/profile/11060432032766743638noreply@blogger.comtag:blogger.com,1999:blog-6013019333081665053.post-41652063959032404752011-01-18T20:21:53.375-08:002011-01-18T20:21:53.375-08:00Hi. I got this error.
Error 1 A namespace cannot d...Hi. I got this error.<br />Error 1 A namespace cannot directly contain members such as fields or methods D:\PortableSpeedometer\socket_sendfile\Program.cs 220 1 socket_sendfile<br />This error happens at line 220. Im building a tcp based bandwidth estimation by the way.bukan iJamhttps://www.blogger.com/profile/11060432032766743638noreply@blogger.com