文件名称:NBt
- 所属分类:
- 其它资源
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2008-10-13
- 文件大小:
- 11.21mb
- 下载次数:
- 0次
- 提 供 者:
- a***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
NBT:.net 下的BT下载库 内存优化:
◆ KeepAliveMessage, ChokeMessage, UnChokeMessage, InterestingMessage, NotInterestingMessage可以修改成单实例,这样可以节省一些对象分配。不过要解决MessageFactory.Parse()方法需要的,从byte[]中创建Message对象的问题。同样,对于一些没有状态的Task,也可以不用每次创建。
◆ ReceiveBuffer看看能不能用B+或者B-树的方式进行优化,提高检索速度和内存效率。
◆ 当Peer出现错误时,创建一个专门负责将Peer从PeerCollection中移出和重新分配下载等的Task,这样对PeerCollection的修改都移动到TaskQueue中,这样就可以不对PeerCollection进行锁定。这样做的前提是必须实现choke算法,避免其他Task再次将这个已经关闭了的Task调度进来。
◆ KeepAliveMessage, ChokeMessage, UnChokeMessage, InterestingMessage, NotInterestingMessage可以修改成单实例,这样可以节省一些对象分配。不过要解决MessageFactory.Parse()方法需要的,从byte[]中创建Message对象的问题。同样,对于一些没有状态的Task,也可以不用每次创建。
◆ ReceiveBuffer看看能不能用B+或者B-树的方式进行优化,提高检索速度和内存效率。
◆ 当Peer出现错误时,创建一个专门负责将Peer从PeerCollection中移出和重新分配下载等的Task,这样对PeerCollection的修改都移动到TaskQueue中,这样就可以不对PeerCollection进行锁定。这样做的前提是必须实现choke算法,避免其他Task再次将这个已经关闭了的Task调度进来。
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 7941931nbt.zip 列表 NBt/ NBt/mssccprj.scc NBt/NBT.Console/ NBt/NBT.Console/App.ico NBt/NBT.Console/AssemblyInfo.cs NBt/NBT.Console/Class1.cs NBt/NBT.Console/ConsoleWriter.cs NBt/NBT.Console/mssccprj.scc NBt/NBT.Console/NBT.Console.csproj NBt/NBT.Console/NBT.Console.csproj.user NBt/NBT.Console/NBT.Console.csproj.vspscc NBt/NBT.Console/vssver.scc NBt/NBT.Console/WinConsole.cs NBt/NBT.Core/ NBt/NBT.Core.Test/ NBt/NBT.Core.Test/AssemblyInfo.cs NBt/NBT.Core.Test/BDecodingTest.cs NBt/NBT.Core.Test/BEncodingTest.cs NBt/NBT.Core.Test/DownloaderTest.cs NBt/NBT.Core.Test/Forks.Test/ NBt/NBT.Core.Test/Forks.Test/RandomUtils.cs NBt/NBT.Core.Test/Forks.Test/TestUtils.cs NBt/NBT.Core.Test/Forks.Test/vssver.scc NBt/NBT.Core.Test/Forks.Utils/ NBt/NBT.Core.Test/Forks.Utils/Collections/ NBt/NBT.Core.Test/Forks.Utils/Collections/TwoWayHashtable.cs NBt/NBT.Core.Test/Forks.Utils/Collections/vssver.scc NBt/NBT.Core.Test/Forks.Utils/ResourcesUtil.cs NBt/NBT.Core.Test/Forks.Utils/vssver.scc NBt/NBT.Core.Test/IntEndianConverterTest.cs NBt/NBT.Core.Test/Messages/ NBt/NBT.Core.Test/Messages/BeginLengthMessageTest.cs NBt/NBT.Core.Test/Messages/BitfieldMessageTest.cs NBt/NBT.Core.Test/Messages/BitFieldTest.cs NBt/NBT.Core.Test/Messages/HandshakeMessageTest.cs NBt/NBT.Core.Test/Messages/HaveMessageTest.cs NBt/NBT.Core.Test/Messages/KeepaliveMessageTest.cs NBt/NBT.Core.Test/Messages/MemMessageIOServer.cs NBt/NBT.Core.Test/Messages/MessageFactoryTest.cs NBt/NBT.Core.Test/Messages/MessageReceiverTest.cs NBt/NBT.Core.Test/Messages/OutputMessageQueueTest.cs NBt/NBT.Core.Test/Messages/PieceMessageTest.cs NBt/NBT.Core.Test/Messages/PipeLineMessageTest.cs NBt/NBT.Core.Test/Messages/SimpleMessagesTest.cs NBt/NBT.Core.Test/Messages/TypedMessageTester.cs NBt/NBT.Core.Test/Messages/vssver.scc NBt/NBT.Core.Test/MetaInfoTest.cs NBt/NBT.Core.Test/mssccprj.scc NBt/NBT.Core.Test/NBT.Core.Test.csproj NBt/NBT.Core.Test/NBT.Core.Test.csproj.user NBt/NBT.Core.Test/NBT.Core.Test.csproj.vspscc NBt/NBT.Core.Test/NetworkBufferTest.cs NBt/NBT.Core.Test/Peers/ NBt/NBT.Core.Test/Peers/PeerCollectionTest.cs NBt/NBT.Core.Test/Peers/PeerListenerTest.cs NBt/NBT.Core.Test/Peers/PeerRecCollectionTest.cs NBt/NBT.Core.Test/Peers/PeerRecTest.cs NBt/NBT.Core.Test/Peers/PeerTest.cs NBt/NBT.Core.Test/Peers/vssver.scc NBt/NBT.Core.Test/Reportings/ NBt/NBT.Core.Test/Storages/ NBt/NBT.Core.Test/Storages/FileBitmapTest.cs NBt/NBT.Core.Test/Storages/PieceTest.cs NBt/NBT.Core.Test/Storages/StorageTest.cs NBt/NBT.Core.Test/Storages/vssver.scc NBt/NBT.Core.Test/Tasks/ NBt/NBT.Core.Test/Tasks/ExecuteCountTask.cs NBt/NBT.Core.Test/Tasks/FakeTaskFactory.cs NBt/NBT.Core.Test/Tasks/HandShakeTaskTest.cs NBt/NBT.Core.Test/Tasks/KeepAliveTaskTest.cs NBt/NBT.Core.Test/Tasks/NormalTaskFactoryTest.cs NBt/NBT.Core.Test/Tasks/TaskQueueTest.cs NBt/NBT.Core.Test/Tasks/TestMessageTask.cs NBt/NBT.Core.Test/Tasks/TestTaskFactory.cs NBt/NBT.Core.Test/Tasks/TestTaskQueue.cs NBt/NBT.Core.Test/Tasks/ThreadPoolExecTest.cs NBt/NBT.Core.Test/Tasks/TrackerRequestTest.cs NBt/NBT.Core.Test/Tasks/vssver.scc NBt/NBT.Core.Test/Utils.cs NBt/NBT.Core.Test/vssver.scc NBt/NBT.Core.Test/性感美女精选.torrent NBt/NBT.Core.Test/成龙.torrent NBt/NBT.Core.Test/模拟器全集.torrent NBt/NBT.Core.Test/电脑高手2003电子版.exe NBt/NBT.Core.Test/电脑高手2003电子版.exe.torrent NBt/NBT.Core/AssemblyInfo.cs NBt/NBT.Core/Average.cs NBt/NBT.Core/BDecoding.cs NBt/NBT.Core/BEncoding.cs NBt/NBT.Core/DownloadContext.cs NBt/NBT.Core/Downloader.cs NBt/NBT.Core/DownloadObject.cs NBt/NBT.Core/Forks.Utils/ NBt/NBT.Core/Forks.Utils/Converts.cs NBt/NBT.Core/Forks.Utils/MathUtil.cs NBt/NBT.Core/Forks.Utils/stringUtil.cs NBt/NBT.Core/Forks.Utils/vssver.scc NBt/NBT.Core/IntEndianConverter.cs NBt/NBT.Core/IStopable.cs NBt/NBT.Core/Messages/ NBt/NBT.Core/Messages/BeginLengthMessage.cs NBt/NBT.Core/Messages/BitField.cs NBt/NBT.Core/Messages/BitfieldMessage.cs NBt/NBT.Core/Messages/CancelMessage.cs NBt/NBT.Core/Messages/ChokeMessage.cs NBt/NBT.Core/Messages/HandshakeMessage.cs NBt/NBT.Core/Messages/HaveMessage.cs NBt/NBT.Core/Messages/HaveTask.cs NBt/NBT.Core/Messages/IMessageIOServer.cs NBt/NBT.Core/Messages/InterestedMessage.cs NBt/NBT.Core/Messages/KeepaliveMessage.cs NBt/NBT.Core/Messages/Message.cs NBt/NBT.Core/Messages/MessageFactory.cs NBt/NBT.Core/Messages/MessageReceived.cs NBt/NBT.Core/Messages/MessageReceiver.cs NBt/NBT.Core/Messages/NotInterestedMessage.cs NBt/NBT.Core/Messages/OutputMessageQueue.cs NBt/NBT.Core/Messages/PieceMessage.cs NBt/NBT.Core/Messages/RequestMessage.cs NBt/NBT.Core/Messages/SimpleMessage.cs NBt/NBT.Core/Messages/SocketMessageIOServer.cs NBt/NBT.Core/Messages/TransferErrorEvent.cs NBt/NBT.Core/Messages/TypedMessage.cs NBt/NBT.Core/Messages/UnchokeMessage.cs NBt/NBT.Core/Messages/vssver.scc NBt/NBT.Core/MetaInfo.cs NBt/NBT.Core/mssccprj.scc NBt/NBT.Core/NBT.Core.csproj NBt/NBT.Core/NBT.Core.csproj.user NBt/NBT.Core/NBT.Core.csproj.vspscc NBt/NBT.Core/NBT.Core.mdx NBt/NBT.Core/NBT.Core.wdx NBt/NBT.Core/NBT.Core70C37CDBDC3D4AE3A2EDBAC8518767D1.idx NBt/NBT.Core/NetworkBuffer.cs NBt/NBT.Core/Peers/ NBt/NBT.Core/Peers/Peer.cs NBt/NBT.Core/Peers/PeerCollection.cs NBt/NBT.Core/Peers/PeerListener.cs NBt/NBT.Core/Peers/PeerRec.cs NBt/NBT.Core/Peers/PeerRecCollection.cs NBt/NBT.Core/Peers/SHA1Comparer.cs NBt/NBT.Core/Peers/SHA1HashProvider.cs NBt/NBT.Core/Peers/vssver.scc NBt/NBT.Core/Reportings/ NBt/NBT.Core/Reportings/DownloadStatEvent.cs NBt/NBT.Core/Reportings/PeerReportRec.cs NBt/NBT.Core/Reportings/PeerReportStatEvent.cs NBt/NBT.Core/Reportings/ProgressEvent.cs NBt/NBT.Core/Reportings/vssver.scc NBt/NBT.Core/Storages/ NBt/NBT.Core/Storages/FileBitmap.cs NBt/NBT.Core/Storages/Piece.cs NBt/NBT.Core/Storages/Storage.cs NBt/NBT.Core/Storages/vssver.scc NBt/NBT.Core/Tasks/ NBt/NBT.Core/Tasks/AddPeerTask.cs NBt/NBT.Core/Tasks/BroadcastMsgTask.cs NBt/NBT.Core/Tasks/ChokeTask.cs NBt/NBT.Core/Tasks/ChokingAlgorithmTask.cs NBt/NBT.Core/Tasks/DispatchDownloadTask.cs NBt/NBT.Core/Tasks/EmptyTask.cs NBt/NBT.Core/Tasks/HandShakeTask.cs NBt/NBT.Core/Tasks/ITaskQueue.cs NBt/NBT.Core/Tasks/KeepAliveTask.cs NBt/NBT.Core/Tasks/NormalTaskFactory.cs NBt/NBT.Core/Tasks/OnBitfieldTask.cs NBt/NBT.Core/Tasks/OnChokeTask.cs NBt/NBT.Core/Tasks/OnHaveTask.cs NBt/NBT.Core/Tasks/OnInterestingTask.cs NBt/NBT.Core/Tasks/OnKeepAliveTask.cs NBt/NBT.Core/Tasks/OnMessageTask.cs NBt/NBT.Core/Tasks/OnNotInterestingTask.cs NBt/NBT.Core/Tasks/OnPieceTask.cs NBt/NBT.Core/Tasks/OnRequestTask.cs NBt/NBT.Core/Tasks/OnUnChokeTask.cs NBt/NBT.Core/Tasks/PeerRecTasks/ NBt/NBT.Core/Tasks/PeerRecTasks/AddPeerRecTask.cs NBt/NBT.Core/Tasks/PeerRecTasks/ConnectToPeer.cs NBt/NBT.Core/Tasks/PeerRecTasks/IncPeerRecFailTask.cs NBt/NBT.Core/Tasks/PeerRecTasks/PeerRecTask.cs NBt/NBT.Core/Tasks/PeerRecTasks/ResetPeerRecFailTask.cs NBt/NBT.Core/Tasks/PeerRecTasks/vssver.scc NBt/NBT.Core/Tasks/PeerRecTasks/WipeBadPeerRecTask.cs NBt/NBT.Core/Tasks/PeerTask.cs NBt/NBT.Core/Tasks/RemovePeerTask.cs NBt/NBT.Core/Tasks/ReportingTasks/ NBt/NBT.Core/Tasks/ReportingTasks/DownloadProgressReportTask.cs NBt/NBT.Core/Tasks/ReportingTasks/vssver.scc NBt/NBT.Core/Tasks/Task.cs NBt/NBT.Core/Tasks/TaskFactory.cs NBt/NBT.Core/Tasks/TaskQueue.cs NBt/NBT.Core/Tasks/TrackerRequestExecutor.cs NBt/NBT.Core/Tasks/TrackerRequestMsg.cs NBt/NBT.Core/Tasks/TrackerRequestTask.cs NBt/NBT.Core/Tasks/UnChokeTask.cs NBt/NBT.Core/Tasks/vssver.scc NBt/NBT.Core/Tasks/WipeDeadPeerTask.cs NBt/NBT.Core/Todo.txt NBt/NBT.Core/vssver.scc NBt/NBT.sln NBt/NBT.suo NBt/NBT.vssscc NBt/vssver.scc