Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.0.0
-
None
Description
OM makes call this API to look up a key.
This call accounts for 20% (give or take) of OM request handler overhead. Would be great if we can get rid of this call.
OMClientRequest.java
@SuppressFBWarnings("DMI_HARDCODED_ABSOLUTE_FILENAME") public static String validateAndNormalizeKey(String keyName) throws OMException { String normalizedKeyName; if (keyName.startsWith(OM_KEY_PREFIX)) { normalizedKeyName = Paths.get(keyName).toUri().normalize().getPath(); } else { normalizedKeyName = Paths.get(OM_KEY_PREFIX, keyName).toUri() .normalize().getPath(); }