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

OSGeo / gdal / 10641138614

31 Aug 2024 01:09AM UTC coverage: 69.353% (+0.001%) from 69.352%
10641138614

push

github

web-flow
Python bindings: Avoid linear scan in gdal_array.NumericTypeCodeToGDALTypeCode (#10694)

Avoids a surprisingly expensive lookup in gdal_array.NumericTypeCodeToGDALTypeCode. This was showing up in profiling of a script that calls ReadAsArray many times; these changes improve total script runtime by ~10%.

I re-implemented the function flip_code because I saw it used in the wild: https://github.com/search?q=gdal_array.flip_code&type=code

542707 of 782533 relevant lines covered (69.35%)

214583.04 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

89.38
/port/cpl_string.cpp


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc