[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #RNR-222360]: Potential optimization for netcdf-4.3.0

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [netCDF #RNR-222360]: Potential optimization for netcdf-4.3.0
  • Date: Wed, 05 Jun 2013 13:47:54 -0600

> The attached patch file has a potential optimization for the nc4_find_dim_len 
> function in libsrc4/nc4internal.c.  The patch eliminates several malloc/free 
> calls that exist in the original coding.  I have tested and used this 
> optimization quite a bit, but it is possible that there are bugs.
> 
> Let me know if this looks useful.

Yes, and it passes all our tests so far.  It looks good to me, so thanks for
the contribution!

--Russ

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: RNR-222360
Department: Support netCDF
Priority: Normal
Status: Closed