Comments (1)
0.1.2 版本去除了可能会频繁切换线程代码, 现在只保留了线程锁, 线程调度和切换全部由业务层决定.
Demo 中可以测试一次性添加超多任务的需求, 可以将添加任务组包含到子线程中, 再用 -[FKDownloadManager addedBlock]
获取一添加完任务后事件来刷新 UI.
我已在模拟器中测试过在子线程中一次性添加 5000 个任务, 基本上 CPU 瞬间飙升到 70% 后又回落至 1%, 内存上涨 20 MB 左右, 恒定 1% 是因为有 Timer 运行(可以配置 calculateSpeedWithEstimated = NO
关闭), 20 MB 是任务的内存缓存.
目前的 Timer 已经从 NSTimer 替换成 GCD Timer, 否则 5000 个任务的 Timer 将恒定占用 30% 左右的 CPU.
from fkdownloader.
Related Issues (20)
- 怎么比较简单的在这个框架的基础上实现增加M3U8视频文件下载 HOT 2
- 任务不执行 HOT 1
- 有分片下载支持吗 HOT 1
- pod版本 FKDownloader (0.1.3) 求助 HOT 7
- 不能实现断点下载,暂停之后会从头开始下载 HOT 1
- 和 AFNetworking 有冲突 HOT 1
- 任务不执行,execute方法调用后 KVO监听的countOfBytesReceived并没有回调 HOT 1
- FKDownloadExecutor文件中 28行与83行两个不一致,这个是为什么啊 HOT 1
- 可以在Task里面添加一个下载完成的时间吗 HOT 1
- 该库还会更新吗? HOT 5
- AFPercentEscapedStringFromString跟AFN冲突无法编译 HOT 3
- FKMessager 监听有时会出现监听不被移除的问题 HOT 5
- 你好,导入头文件时#import "FKDownloader.h",调用下载方法,找不到文件'FKDownloader/FKConfigure.h' file not found HOT 7
- 运用大侠库的时候 crash, 求解决,万分感谢!!! HOT 8
- 如果用于生产环境的话推荐使用哪个版本 HOT 1
- 如何保存到本地文件的时候用原始文件名保存 HOT 3
- 功能优化 HOT 4
- 多目录
- demo 中 获取下载完的 文件,查找时崩溃,
- 后台下载失败
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fkdownloader.