• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Giorgi / DuckDB.NET / 29167982032
90%

Build:
DEFAULT BRANCH: develop
Ran 11 Jul 2026 09:02PM UTC
Jobs 0
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
29167982032

push

github

Giorgi
Skip Convert.ChangeType on the same-type object read path

NumericVectorDataReader.GetValue(offset, targetType) backs the non-generic read
surface (GetValue(ordinal), this[ordinal], GetValues). It always ran the boxed
value through Convert.ChangeType, even when targetType already matched the
column's natural type — the common case, since those APIs read using the
column's ClrType.

Convert.ChangeType does not early-out on same-type for IConvertible values: it
dispatches through ToXxx() and re-boxes the result, so every value was boxed
twice. Add a value.GetType() == targetType fast path that returns the already
boxed value directly.

Benchmark (read 1,000,000 rows x 3 numeric columns via GetValue, .NET 10, M4 Pro):

  Before: 54.50 ms, 137.3 MB allocated
  After:  22.73 ms,  68.7 MB allocated

-58% time and -50% allocations on the object-returning path (the remaining
allocation is the unavoidable single box of the object API). The typed
GetFieldValue<T> path is unaffected. Behavior is unchanged: ChangeType returned
the same value for same-type, and BigInteger (not IConvertible) already used
this same early-out inside ChangeType.
Source Files on build 29167982032
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #29167982032
  • 1ae01e97 on github
  • Prev Build on develop (#28126041613)
  • Next Build on develop (#29168375289)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc