QTableWidget大数据文件 文件映射mmap

上传者: 38293453 | 上传时间: 2024-02-20 09:22:10 | 文件大小: 14.96MB | 文件类型: RAR
QTableWidget大数据文件显示 文件映射mmap  如果文件很大,读取全部的数据会占用很大内存,推荐文件映射的方法,每次交互只读需要显示的文件数据。文件映射1G左右的文件,大概在1.2s左右可以完成文件映射;再进行分页显示,表格固定的是一百行,每次操作对这一百行数据进行刷新,虚拟出完整表格的效果。 测试:QTableWidge分页显示1千万行数据,建立mmap文件映射,只读取需要显示的部分文件内容,此种方式速度快,占用内存小,内存占用149MB左右,每次只读取显示部分的数据,推荐此种方式。

文件下载

资源详情

[{"title":"( 113 个子文件 14.96MB ) QTableWidget大数据文件 文件映射mmap","children":[{"title":"moc_LoadFileData.cpp <span style='color:#111;'> 5.46KB </span>","children":null,"spread":false},{"title":"QCustomTableWidget.cpp <span style='color:#111;'> 5.29KB </span>","children":null,"spread":false},{"title":"moc_QCustomTableWidget.cpp <span style='color:#111;'> 4.68KB </span>","children":null,"spread":false},{"title":"moc_LoadFileData.cpp <span style='color:#111;'> 4.66KB </span>","children":null,"spread":false},{"title":"moc_QCustomTableWidget.cpp <span style='color:#111;'> 4.37KB </span>","children":null,"spread":false},{"title":"moc_ScrollBar.cpp <span style='color:#111;'> 4.34KB </span>","children":null,"spread":false},{"title":"moc_ScrollBar.cpp <span style='color:#111;'> 4.34KB </span>","children":null,"spread":false},{"title":"moc_TableWidget.cpp <span style='color:#111;'> 3.72KB </span>","children":null,"spread":false},{"title":"moc_FileFastReadLines.cpp <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"moc_FileFastReadLines.cpp <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"moc_TestTableWidget.cpp <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"moc_TestTableWidget.cpp <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"qrc_TestTableWidget.cpp <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"qrc_TestTableWidget.cpp <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"LoadFileData.cpp <span style='color:#111;'> 575B </span>","children":null,"spread":false},{"title":"TestTableWidget.cpp <span style='color:#111;'> 555B </span>","children":null,"spread":false},{"title":"ScrollBar.cpp <span style='color:#111;'> 472B </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"FileCoreLib.dll <span style='color:#111;'> 87.00KB </span>","children":null,"spread":false},{"title":"FileCoreLib.dll <span style='color:#111;'> 28.00KB </span>","children":null,"spread":false},{"title":".editorconfig <span style='color:#111;'> 53B </span>","children":null,"spread":false},{"title":"TestTableWidget.exe <span style='color:#111;'> 152.50KB </span>","children":null,"spread":false},{"title":"FileCoreLib.exp <span style='color:#111;'> 7.27KB </span>","children":null,"spread":false},{"title":"FileCoreLib.exp <span style='color:#111;'> 7.27KB </span>","children":null,"spread":false},{"title":"TestTableWidget.vcxproj.filters <span style='color:#111;'> 2.61KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 112B </span>","children":null,"spread":false},{"title":"ui_QCustomTableWidget.h <span style='color:#111;'> 2.31KB </span>","children":null,"spread":false},{"title":"ui_QCustomTableWidget.h <span style='color:#111;'> 2.31KB </span>","children":null,"spread":false},{"title":"ui_TestTableWidget.h <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"ui_TestTableWidget.h <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"FileMappingResolution.h <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false},{"title":"QCustomTableWidget.h <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"LoadFileData.h <span style='color:#111;'> 413B </span>","children":null,"spread":false},{"title":"TestTableWidget.h <span style='color:#111;'> 410B </span>","children":null,"spread":false},{"title":"ScrollBar.h <span style='color:#111;'> 407B </span>","children":null,"spread":false},{"title":"filecorelib_global.h <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"TestTableWidget.ilk <span style='color:#111;'> 1.45MB </span>","children":null,"spread":false},{"title":"FileCoreLib.ilk <span style='color:#111;'> 537.41KB </span>","children":null,"spread":false},{"title":"TestTableWidget.lastbuildstate <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"TestTableWidget.lastbuildstate <span style='color:#111;'> 206B </span>","children":null,"spread":false},{"title":"FileCoreLib.lib <span style='color:#111;'> 12.48KB </span>","children":null,"spread":false},{"title":"FileCoreLib.lib <span style='color:#111;'> 12.48KB </span>","children":null,"spread":false},{"title":"qt_work.log <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false},{"title":"TestTableWidget.Build.CppClean.log <span style='color:#111;'> 3.67KB </span>","children":null,"spread":false},{"title":"qt_work.log <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false},{"title":"TestTableWidget.log <span style='color:#111;'> 330B </span>","children":null,"spread":false},{"title":"TestTableWidget.log <span style='color:#111;'> 176B </span>","children":null,"spread":false},{"title":"QCustomTableWidget.obj <span style='color:#111;'> 302.61KB </span>","children":null,"spread":false},{"title":"TableWidget.obj <span style='color:#111;'> 284.30KB </span>","children":null,"spread":false},{"title":"TestTableWidget.obj <span style='color:#111;'> 158.71KB </span>","children":null,"spread":false},{"title":"moc_TableWidget.obj <span style='color:#111;'> 117.18KB </span>","children":null,"spread":false},{"title":"moc_QCustomTableWidget.obj <span style='color:#111;'> 106.85KB </span>","children":null,"spread":false},{"title":"ScrollBar.obj <span style='color:#111;'> 103.66KB </span>","children":null,"spread":false},{"title":"LoadFileData.obj <span style='color:#111;'> 102.63KB </span>","children":null,"spread":false},{"title":"QCustomTableWidget.obj <span style='color:#111;'> 94.12KB </span>","children":null,"spread":false},{"title":"moc_TestTableWidget.obj <span style='color:#111;'> 83.45KB </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 81.29KB </span>","children":null,"spread":false},{"title":"moc_ScrollBar.obj <span style='color:#111;'> 73.18KB </span>","children":null,"spread":false},{"title":"moc_LoadFileData.obj <span style='color:#111;'> 64.29KB </span>","children":null,"spread":false},{"title":"moc_FileFastReadLines.obj <span style='color:#111;'> 62.02KB </span>","children":null,"spread":false},{"title":"TestTableWidget.obj <span style='color:#111;'> 48.45KB </span>","children":null,"spread":false},{"title":"ScrollBar.obj <span style='color:#111;'> 15.05KB </span>","children":null,"spread":false},{"title":"LoadFileData.obj <span style='color:#111;'> 8.04KB </span>","children":null,"spread":false},{"title":"moc_QCustomTableWidget.obj <span style='color:#111;'> 7.44KB </span>","children":null,"spread":false},{"title":"qrc_TestTableWidget.obj <span style='color:#111;'> 6.41KB </span>","children":null,"spread":false},{"title":"moc_LoadFileData.obj <span style='color:#111;'> 5.08KB </span>","children":null,"spread":false},{"title":"moc_ScrollBar.obj <span style='color:#111;'> 4.69KB </span>","children":null,"spread":false},{"title":"moc_TestTableWidget.obj <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 2.55KB </span>","children":null,"spread":false},{"title":"qrc_TestTableWidget.obj <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"TestTableWidget.pdb <span style='color:#111;'> 2.81MB </span>","children":null,"spread":false},{"title":"vc141.pdb <span style='color:#111;'> 2.67MB </span>","children":null,"spread":false},{"title":"FileCoreLib.pdb <span style='color:#111;'> 1.12MB </span>","children":null,"spread":false},{"title":"qtvars_x64_Release.props <span style='color:#111;'> 3.92KB </span>","children":null,"spread":false},{"title":"qtvars_x64_Debug.props <span style='color:#111;'> 3.90KB </span>","children":null,"spread":false},{"title":"TestTableWidget.qrc <span style='color:#111;'> 75B </span>","children":null,"spread":false},{"title":"TestTableWidget.sln <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 769.21KB </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 326.38KB </span>","children":null,"spread":false},{"title":"TestTableWidget.write.1u.tlog <span style='color:#111;'> 42.76KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 38.65KB </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 17.82KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 17.43KB </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 13.11KB </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 8.46KB </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 5.27KB </span>","children":null,"spread":false},{"title":"TestTableWidget.write.1u.tlog <span style='color:#111;'> 4.91KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 4.30KB </span>","children":null,"spread":false},{"title":"moc.write.1u.tlog <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"moc.write.1u.tlog <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"uic.write.1u.tlog <span style='color:#111;'> 646B </span>","children":null,"spread":false},{"title":"uic.write.1u.tlog <span style='color:#111;'> 638B </span>","children":null,"spread":false},{"title":"moc.read.1u.tlog <span style='color:#111;'> 542B </span>","children":null,"spread":false},{"title":"moc.read.1u.tlog <span style='color:#111;'> 542B </span>","children":null,"spread":false},{"title":"rcc.write.1u.tlog <span style='color:#111;'> 326B </span>","children":null,"spread":false},{"title":"rcc.write.1u.tlog <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"uic.read.1u.tlog <span style='color:#111;'> 288B </span>","children":null,"spread":false},{"title":"uic.read.1u.tlog <span style='color:#111;'> 288B </span>","children":null,"spread":false},{"title":"rcc.read.1u.tlog <span style='color:#111;'> 144B </span>","children":null,"spread":false},{"title":"rcc.read.1u.tlog <span style='color:#111;'> 144B </span>","children":null,"spread":false},{"title":"......","children":null,"spread":false},{"title":"<span style='color:steelblue;'>文件过多,未全部展示</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明