This PR refactors the creation of CoapMediaTypes from numeric values by using a HashMap as a registry instead of iterating over all values. This should somewhat increase the performance, as CoapMediaTypes can now be determined with constant instead of linear complexity.
This PR refactors the creation of
CoapMediaType
s from numeric values by using aHashMap
as a registry instead of iterating over all values. This should somewhat increase the performance, asCoapMediaType
s can now be determined with constant instead of linear complexity.