Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: revert back to recognize only "sampleRate" or "SampleRate" attri…
…butes (#284) > What kinds of sample rates do you usually have here? > We got both kinds: `sampleRate` and `SampleRate`. ## Which problem is this PR solving? 1. A predicted performance regression during ingest: iterating over all attributes looking for a matching key name is much slower than 2 lookups into the attributes map. 2. Non-deterministic behavior in the probably-rare case of attributes containing multiple "samplerate" keys of differing capitalization, which would be astonishingly difficult to troubleshoot after ingest ## Short description of the changes - update the test to assert the previous behavior of recognizing only `sampleRate` and `SampleRate` - revert getSampleRateKey function back to two-key lookup behavior - leave notes to Future Us
- Loading branch information