-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ExcelRow.autoFill: caching of reflection fields implemented for faste…
…r exports.
- Loading branch information
Showing
5 changed files
with
70 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
merlin-core/src/main/kotlin/de/micromata/merlin/excel/WorkingCache.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package de.micromata.merlin.excel | ||
|
||
import java.lang.reflect.Field | ||
|
||
/** | ||
* Used for caching some stuff for better performance especially for large sheets to create. | ||
*/ | ||
internal class WorkingCache { | ||
internal class AutoFillCache{ | ||
val foundFieldsMap = mutableMapOf<ExcelColumnDef, Field>() | ||
val notFoundFieldsSet = mutableSetOf<ExcelColumnDef>() | ||
} | ||
internal val autoFillCache = AutoFillCache() | ||
} |