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
84 stars 58 forks source link

Sort ignore case avoiding casting #73

Closed ChrisPJohn closed 2 years ago

ChrisPJohn commented 2 years ago

The improvements here are harder to capture in the tests and profiler. Without the changes the full EDDTableFromNcFiles.testNThreads() took 763,570 ms, with the changes it was 609,569 ms. These improvements would be due eliminating the overhead from casting (mostly cpu time, with a couple of these changes to reduce boxing there should be slightly less heap usage as well). My profiling last week explicitly had the improvements inside of sortIgnoreCase (not today, which is likely due to randomness in the sampler).