Repository navigation
Conversation
Use resumable row and cell callbacks across XLS, XLSX, XLSB, SpreadsheetML and CSV. Fill the shared current-row buffer directly, preserving format-specific decoding, scheduling and lifecycle behavior.
Index row overlaps during preparation and buffer only disordered regions. Merge repeated row fragments with last-write precedence; reject completed-row revisits in single-pass mode.
Decode XLS and XLSB records from reusable frames, remove superseded record wrappers and share style sinks. Validate XLSB framing and mark non-mutating handlers readonly.
Use span-based reads on modern targets, reduce compound-document startup buffers and optimize XLS string decoding. Preserve legacy framework and encrypted-stream paths.
Process ordinary field text in contiguous runs while preserving quoting, escaping, trimming and pause boundaries.
Index built-in formats directly, scan delimiters with IndexOf and match reference and format tokens as ASCII. Reuse boxed booleans and add focused lookup and materialization benchmarks.
Lazily share immutable public cell styles, decode shared-string escapes before storage and fast-path small unsigned numeric text with general-parser fallbacks.
Parse values with their resolved formatting and box only final dates and durations. Remove the temporary date wrapper and unused serial-date calculation; cover parsing fallbacks and access-pattern benchmarks.
Return the verified key to XLS and OpenXML startup instead of deriving it again. Reuse the Agile password hash to recover the package key, preserving magic-password precedence without adding a cache.
Avoid temporary UTF-16 password arrays during Standard and Agile key derivation. Cover empty passwords, Unicode surrogate pairs, and invalid-surrogate fallback behavior.
Decrypt fallback segments directly into reusable buffers instead of allocating stream wrappers and output arrays per segment. Cover supported ciphers, cross-segment reads, seeks, and padded final segments.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Unify worksheet reading across all formats around resumable push consumption, simplifying the pipelines and reducing unnecessary allocations.
DBNullinstead of"".Performance
Comparison against
developacross 424 test documents with matching output, using repeated full reads of every sheet and value:These are aggregate corpus results, not universal per-format gains. Representative larger XLSX documents read 9–11% faster. Subsequent key-derivation reuse reduced full-read time by 31–36% for five ordinary-password fixtures and about 49% for two default-password fixtures, compared with this branch before that optimization.
The empty-string correction above is the only output difference found in the corpus. Seven malformed documents failed identically in both versions.
Related to #525
Fixes #770