Skip to content

Optimized write adapters and improved code clarity#940

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

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

Conversation

@michelebastione
Copy link
Copy Markdown
Contributor

@michelebastione michelebastione commented Apr 3, 2026

  • 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

Copy link
Copy Markdown
Contributor

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

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.

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
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