mbien commented on PR #6590:
URL: https://github.com/apache/netbeans/pull/6590#issuecomment-1770876290
> Having a look at an alternative idea. Our library is an old release too.
testing with latest lib in a maven project, update wouldn't change anything.
But we should update anyway at some point.
here a snippet:
```java
public class Disco {
public static void main(String[] args) {
DiscoClient client = new DiscoClient();
System.out.println(measure(() -> client.getLatestLts(false)));
System.out.println(measure(() -> client.getLatestSts(false)));
System.out.println(measure(() -> client.getAllMajorVersions(false)));
System.out.println(measure(() -> client.getAllMajorVersions(true)));
}
private static <R> R measure(Supplier<R> s) {
long delta = System.currentTimeMillis();
R r = s.get();
System.out.println("delta: "+
(System.currentTimeMillis()-delta)/1000.0f);
return r;
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists