当前位置:网站首页>POI与EasyExcel读写测试
POI与EasyExcel读写测试
2022-04-21 13:47:00 【bingtanghulu_6】
面试问到怎么优化excel加载数据过慢的问题,深度学习了一下excel的读写,提供了两种解决方案:Apache的POI和阿里巴巴开源的easyExcel
POI官网:https://poi.apache.org/
easyExcel官网:easyexcel: easyexcel —— JAVA 解析 Excel 工具 Java 解析、生成 Excel 比较有名的框架有 Apache poi、jxl
源码已经放到码云上,需要的自取:耿洪博/POITest
100万数据测试写入基本只需要8秒,读取可能需要18秒左右。
1.POI
1.1 POI写入读取测试
POIWriteTest一共5个方法: writeTest:03版本写入测试 write07Test:07版本测试 write03BigDataTest:03版本大数据量写入测试 write07BigDataTest:07版本大数据量写入测试 write07BetterBigDataTest:07版本大数据量写入测试-优化版本 POIReadTest:与POI写入类对应

2.EasyExcel
2.1 EasyExcel写入读取测试
easyExcel的原理相当于将POI中需要一次性加载到内存中的数据只需要分段,多次的加载写入,能保证不会出现OOM的情况,但测试只支持xlsx文件。

版权声明
本文为[bingtanghulu_6]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_21575929/article/details/123701386
边栏推荐
- Vagrant详细教程
- Nmap usage
- International logistics centralized transportation system source code, overseas warehousing cross-border transshipment system source code
- Tool function --- get parameters from the address bar
- If the field lines are the same, they will be merged into another field SQL statement?
- STM32 drives st7789v2 TFT screen
- Tailwind核心理念——响应式设计
- STM32 MCU beginner 5-iic communication drive OLED screen
- Idea automatically generates unit test classes
- 做自媒体、短视频,不要再相信那些互关、互赞了
猜你喜欢

International logistics centralized transportation system source code, overseas warehousing cross-border transshipment system source code

Tailwind核心理念——响应式设计

一份很棒的外设驱动库!(基于STM32F4)

CDH5删除数据节点

SECOND: Sparsely Embedded Convolutional Detection

Ipemotion collects J1939 protocol signal

Réaliser l'affichage aléatoire de l'étiquette, de la taille de la police et de la couleur

Open mmlab / mmpose installation and use tutorial

Vagrant detailed tutorial

Programmers burst out their salary, with a monthly salary of 15000 before tax
随机推荐
Programmers burst out their salary, with a monthly salary of 15000 before tax
List stores map values
tooltip显示更多的信息
单体测试使用Assert.assertThat(expected,Matcher matcher)来对比结果和预期
Tooltip displays more information
Vagrant详细教程
Hystrix使用
字符串串动变化 (10 分)下列程序中,函数fun的功能是:在字符串str中找出ASCII码值最大的字符,将该字符前的所有字符向后顺序移动一个位置,然后将该字符放到第一个位置上。
Do self media and short videos, and don't trust those mutual relations and mutual praise
Buuctf [Chapter 3 Advanced Web] logic vulnerability
Wechat hidden function series: wechat regular reminder, 2 steps, to relax yourself when you are busy
Peking University ACM problems 1012: Maya calendar
How to uninstall openjdk and install Oracle JDK under CentOS
Scroll bar style modification
MySQL learning notes - day03
Feedforward neural network
关于`Object.clone()`子类不能调用的思考
thread库和 asio 库区别
【leetcode】516.最长回文子序列
机器学习笔记 - SVD奇异值分解(3) 在图像上应用 SVD