ERDDAP / erddap

ERDDAP is a scientific data server that gives users a simple, consistent way to download subsets of gridded and tabular scientific datasets in common file formats and make graphs and maps. ERDDAP is a Free and Open Source (Apache and Apache-like) Java Servlet from NOAA NMFS SWFSC Environmental Research Division (ERD).
Creative Commons Zero v1.0 Universal
78 stars 57 forks source link

Optimize NcHelper get primitive array #71

Closed ChrisPJohn closed 2 years ago

ChrisPJohn commented 2 years ago

EDDTableFromNcFiles.testNThreads(); Pre optimizations: bigResults: nThreads=5 time=6269ms nThreads=4 time=6013ms nThreads=3 time=6792ms nThreads=2 time=9124ms nThreads=1 time=15093ms nThreads=1 time=16140ms nThreads=2 time=8768ms nThreads=3 time=6911ms nThreads=4 time=6138ms

With optimizations: bigResults: nThreads=5 time=4286ms nThreads=4 time=4258ms nThreads=3 time=4678ms nThreads=2 time=5965ms nThreads=1 time=10441ms nThreads=1 time=10406ms nThreads=2 time=5956ms nThreads=3 time=4723ms nThreads=4 time=4176ms