Skip to content

Optimized write adapters and improved code clarity - #940

Merged
michelebastione merged 5 commits into
mini-software:masterfrom
michelebastione:writeadapters-fixes
Apr 3, 2026
Merged

Optimized write adapters and improved code clarity#940
michelebastione merged 5 commits into
mini-software:masterfrom
michelebastione:writeadapters-fixes

Conversation

@michelebastione

@michelebastione michelebastione commented Apr 3, 2026

Copy link
Copy Markdown
Collaborator
  • Changed IEnumerable<CellWriteInfo> to CellWriteInfo[] for all write adapters as having to call MoveNext for each cell is mostly not worth the overhead cost
  • Renaming all "props" variables throughout the solution to "mappings" for clarity
  • Added NetStandardExtensions class to replicate .NET framework's helper methods and improve code clarity
  • Added .editorconfig for the src folder to the solution file

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors internal row processing by replacing nested IEnumerables with arrays and optimizing list allocations. It renames property-related variables to 'mappings' for consistency, updates template context properties to PascalCase, and adds a NetStandard2.0 compatibility extension for GetValueOrDefault. Feedback was provided to correct a minor formatting issue in the new extension method.

Comment thread src/MiniExcel.Core/Helpers/NetSatandardExtensions.cs Outdated
Signed-off-by: Michele Bastione <michele.bastione@gmail.com>
@michelebastione
michelebastione merged commit 06a66f0 into mini-software:master Apr 3, 2026
3 checks passed
@michelebastione
michelebastione deleted the writeadapters-fixes branch April 3, 2026 14:25
shps951023 pushed a commit that referenced this pull request Aug 29, 2026
* Optimized IEnumerable<CellWriteInfo> to CellWriteInfo[] for all writeadapters

* Renaming all "props" variables to "mappings" for clarity

* Added NetStandardExtensions class to replicate .NET framework's helper methods and reduce code clutter

* Added .editorconfig for src folder to solution

---------

Signed-off-by: Michele Bastione <michele.bastione@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant