Improve Registration.getSortedObjectLinks performance #504
Labels
demo
Impact our demo (not libraries)
new feature
New feature from LWM2M specification
server
Impact LWM2M server
Leshan 1.0.0-M9
Current behaviour:
When using the Leshan Demo server, there are a lot of this type of exceptions when there are a lot of registrations:
originating from https://github.com/eclipse/leshan/blob/e438d749ba997abb63ed49504ada17cde1240c1e/leshan-server-demo/src/main/java/org/eclipse/leshan/server/demo/servlet/EventServlet.java#L85
Expected behaviour:
Normal operations shouldn't create a large number of exceptions. It seems that
Registration.isNumber
could be improved so that it doesn't throw exceptions. A good example for a better approach is the one in Commons Lang StringUtils.isNumericThe text was updated successfully, but these errors were encountered: