Commit 0109970
authored
Optimize, simplify FromChunkedBase64String method (#1868)
This update optimizes and simplifies the FromChunkedBase64String method,
improving both performance and memory efficiency.
### Implementation Details
Removed unnecessary manual handling of \r and \n, as
Convert.FromBase64String already handles these characters automatically.
Eliminated Where() and ToArray() operations, significantly reducing
memory allocations and improving execution efficiency.
### Benchmark Results
Performance: ~2.4x speed improvement
Memory Usage: ~70% reduction1 parent dc006e0 commit 0109970
File tree
1 file changed
+1
-2
lines changed- src/DocumentFormat.OpenXml.Framework/Packaging
1 file changed
+1
-2
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
| 248 | + | |
250 | 249 | | |
251 | 250 | | |
0 commit comments