惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
Security Latest
Security Latest
Simon Willison's Weblog
Simon Willison's Weblog
O
OpenAI News
GbyAI
GbyAI
L
LINUX DO - 最新话题
A
Arctic Wolf
T
Tor Project blog
G
GRAHAM CLULEY
I
InfoQ
博客园_首页
IT之家
IT之家
The Register - Security
The Register - Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
The GitHub Blog
The GitHub Blog
Blog — PlanetScale
Blog — PlanetScale
N
Netflix TechBlog - Medium
K
Kaspersky official blog
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
U
Unit 42
PCI Perspectives
PCI Perspectives
量子位
P
Palo Alto Networks Blog
S
Securelist
T
Troy Hunt's Blog
博客园 - 【当耐特】
Recorded Future
Recorded Future
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
Engineering at Meta
Engineering at Meta
T
The Blog of Author Tim Ferriss
博客园 - 聂微东
罗磊的独立博客
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
B
Blog RSS Feed
NISL@THU
NISL@THU
C
Cisco Blogs
T
Threatpost
有赞技术团队
有赞技术团队
Forbes - Security
Forbes - Security
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
T
The Exploit Database - CXSecurity.com
Cloudbric
Cloudbric
Cyberwarzone
Cyberwarzone
Google DeepMind News
Google DeepMind News
C
Cyber Attacks, Cyber Crime and Cyber Security

博客园 - cutepig

換博客了,新地址https://cutepig123.github.io/ 光盘是个好东西 俺买过的电子产品 抽象的好与坏 垂直方向的努力更有意义 python GUI test tool AirtestIDE_2019-04-16_py3_win64 google translate automation using selenium 冯唐论加班 Prometheus 好繫統是一次性設計出來的嗎 jaeger tracing CS lessons c++ 书籍 my codes 我写的代码 写了一个自动用google翻译文档的工具 用几种语言实现socks server 一個不錯的Modern CMake的入門教程 Modern CMake remote ssh for vscode test
文件系统api为何可以这么简洁以及我們這個抓圖模塊的設計難點
cutepig · 2021-01-31 · via 博客园 - cutepig

文件系统api为何可以这么简洁以及我們這個抓圖模塊的設計難點

  1. 接口设计

文件系統定义了一个很好的抽象层,对外暴露的接口只有打開文件,關閉文件,讀寫文件。其他的一概沒有。

抓图有一个貌似简洁的抓图接口 (他有两个api,一个grab,一个pack),可是他这个接口其实一点也不简单

a 他有机会有无数的参数,parititon参数,后处理参数,等等。
b 为了最佳化各种用法的性能。它允许以最佳的方式调用。即如果能尽早把某些参数传过来,就可以早些做某些运算。否则就只能晚一点做。为了实现这点,这两个api的设计允许參數在兩個api中移動,即有的時候grab的時候告訴讀多少數據,有的時候pack的時候告訴

todo: 文件系統接口有一個異步接口,我們是不是可以參考他們的
https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-readfileex

  1. 内部实现

文件系统接口简单,而内部实现允许各种各样的实现,比如不同的文件系统有完全不同的实现,如ntfs,。。
并且它内部应该还有细化。具体我没了解过

但抓图没有很多个实现这个说法,我们只要一个实现,就是万能driver。这也是困难所在。 如果我们单独写hdoa,没有难度。单独写confocal,也没有难度

處理pipeline,一部分只需要做一次,剩下的需要做很多次
這就要求系統內部要緩存做一次的那些數據
而文件繫統沒有這個做法,她只有一種緩存,就是把最后的數據緩存。他沒有緩存中間數據這個說法