You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/sheet/help/large-data.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,14 +13,14 @@ When reading files larger than 10 MB, Microsoft Excel 03 is unable to handle the
13
13
memory. Microsoft Excel 2007 introduces the concept
14
14
of [Shared Strings](https://learn.microsoft.com/en-us/office/open-xml/spreadsheet/working-with-the-shared-string-table),
15
15
which can consume a significant amount of memory.
16
-
If all shared strings are loaded into memory, the memory usage can be approximately 3 to 10 times the size of the Excel
16
+
If all shared strings are loaded into memory, the memory usage can be approximately 3 to 10 times the size of the spreadsheet
17
17
file. Therefore, FesodSheet uses a strategy of first storing the file and then deserialising it to read the data,
18
18
thereby
19
19
saving memory. Of course, after deserialising the file, efficiency will decrease by approximately 30-50% (this is not
20
20
fixed and depends on the hit rate, which may exceed 100%).
21
21
22
22
If the read efficiency is acceptable, use the default setting. The permanent memory usage (for the entire process of
23
-
reading a single Excel file) generally does not exceed 50MB (most likely around 30MB), and the remaining temporary
23
+
reading a single spreadsheet file) generally does not exceed 50MB (most likely around 30MB), and the remaining temporary
24
24
memory is quickly recycled by the garbage collector.
25
25
26
26
### Default Policy
@@ -34,18 +34,18 @@ read an extremely large file.
34
34
### Configure Memory
35
35
36
36
If you want to customise the settings, first determine how much memory you are willing to allocate for reading a very
37
-
large Excel file.
38
-
For example, if you want the Excel file to occupy a maximum of 100MB of memory during the reading process (this is the
37
+
large spreadsheet file.
38
+
For example, if you want the spreadsheet file to occupy a maximum of 100MB of memory during the reading process (this is the
39
39
permanent memory usage during reading, not including memory immediately reclaimed by the young generation), then set the
40
40
size of the shared string stored in the file to 20MB (less than 20MB is stored in memory, more than 20MB is stored in a
41
41
temporary file), and then set the memory size occupied by the temporary shared string when stored in the file to
42
42
approximately 90MB.
43
43
44
-
If the maximum number of file entries is only a few hundred thousand, and the Excel file is only a few dozen megabytes,
44
+
If the maximum number of file entries is only a few hundred thousand, and the spreadsheet file is only a few dozen megabytes,
45
45
and there is no high concurrency, and memory is sufficient,
46
46
47
47
```java
48
-
// Force memory storage, so a 20M Excel file will use 150M of memory (many temporary objects, so 100M will be constantly GC'd).
48
+
// Force memory storage, so a 20M spreadsheet file will use 150M of memory (many temporary objects, so 100M will be constantly GC'd).
49
49
// This will be much more efficient than the complex strategy above.
50
50
// Just to clarify, all I did was add the readCache(new MapCache()) parameter. For the rest, refer to other examples.
51
51
FesodSheet.read().
@@ -58,7 +58,7 @@ High concurrency requirements, and often involve extremely large files.
58
58
```java
59
59
// The first parameter specifies how many MB of shared string data will be stored in the file (default is 5 MB).
60
60
// The second parameter specifies how many MB of cache data will be stored in memory when using file storage (default is 20 MB).
61
-
// For example, if you want to use 100 MB of memory (this refers to permanent memory usage during parsing, excluding temporary objects) to parse an Excel file, the calculation shows it to be approximately 20 MB + 90 MB, so set the parameters to: 20 and 90.
61
+
// For example, if you want to use 100 MB of memory (this refers to permanent memory usage during parsing, excluding temporary objects) to parse a spreadsheet file, the calculation shows it to be approximately 20 MB + 90 MB, so set the parameters to: 20 and 90.
62
62
// Here's a clarification: the only addition is the readCacheSelector(new SimpleReadCacheSelector(5, 20)) parameter; the rest follows the examples provided.
Copy file name to clipboardExpand all lines: website/i18n/en/code.json
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"site.description": {
3
-
"message": "A high-performance and memory-efficient Java library for reading and writing Excel files, designed to simplify development and ensure reliability."
3
+
"message": "A high-performance and memory-efficient Java library for reading and writing spreadsheet files, designed to simplify development and ensure reliability."
4
4
},
5
5
"quickstart": {
6
6
"message": "Get Start"
@@ -12,13 +12,13 @@
12
12
"message": "High-performance"
13
13
},
14
14
"homepage.feature.quick.description": {
15
-
"message": "Focuses on performance optimization, capable of efficiently handling large-scale Excel data.\n Compared to some traditional Excel processing libraries, it can significantly reduce memory consumption."
15
+
"message": "Focuses on performance optimization, capable of efficiently handling large-scale spreadsheet data.\n Compared to some traditional spreadsheet processing libraries, it can significantly reduce memory consumption."
16
16
},
17
17
"homepage.feature.simple.title": {
18
18
"message": "Simplicity and Ease of Use"
19
19
},
20
20
"homepage.feature.simple.description": {
21
-
"message": "The library offers a simple and intuitive API, allowing developers to easily integrate it into projects, whether for simple Excel operations or complex data processing."
21
+
"message": "The library offers a simple and intuitive API, allowing developers to easily integrate it into projects, whether for simple spreadsheet operations or complex data processing."
Copy file name to clipboardExpand all lines: website/src/pages/index.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ export default function Home() {
66
66
return(
67
67
<Layout
68
68
title=""
69
-
description="Apache Fesod (Incubating) Official Documentation | Fast, concise, Java tool for processing Excel files that solves memory overflow issues with large files <head />">
69
+
description="Apache Fesod (Incubating) Official Documentation | Fast, concise, Java tool for processing spreadsheet files that solves memory overflow issues with large files <head />">
0 commit comments