兴趣点表现 [英] POI performance

查看:24
本文介绍了兴趣点表现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 J2EE Web 应用程序中使用 POI 来生成工作簿.但是,我发现 POI 需要大约 3 分钟才能创建一个具有 25K 行(每行大约 15 列)的工作簿.这是一个 POI 性能问题,还是花那么多时间是合理的?是否有其他已知性能更好的 API?

I am using POI in my J2EE web application to generate a workbook. However, i find that POI takes around 3 mins to create a workbook with 25K rows(with around 15 columns each). Is this a POI performance issue , or is it justified to take that much of time? Are there other APIs known for better performance ?

推荐答案

看到 POI 花费这么多时间来生成这样一个文件,我会感到非常惊讶.我刚刚在大约 18 秒内生成了一个包含 30000 行 x 10 个单元格的工作表(公平地说,没有格式化).原因可能是以下之一:

I would be very surprised to see POI take that much time to generate such a file. I just generated a sheet with 30000 rows x 10 cells in about 18s (no formatting, to be fair). The cause might be one of the following:

  • 可能会打开 POI 日志记录,如此处
  • 您正在从交换内存运行
  • 您的 VM 可用堆可能非常低

这篇关于兴趣点表现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆