netbeans-rest-client icon indicating copy to clipboard operation
netbeans-rest-client copied to clipboard

First request takes longer than the following ones

Open Chris2011 opened this issue 1 year ago • 5 comments

When I open Restclient for the first time, for example after a restart of NetBeans or in a development environment, the first ever taken request took longer than the following ones. I also thought that the others will be cached but when the first one is google and the second twitter, there is no cache needed, because those are two different URLs.

Is there some bootstrapping at the first after the frist call after first opening of NetBeans Rest Client?

Chris2011 avatar Feb 27 '24 22:02 Chris2011

RestClientTopComponent instantiates a RestClient on its constructor. That's all. I have to investigate why it's slow the first time.

javierllorente avatar Feb 28 '24 18:02 javierllorente

But it seems, that it instantiates it on send and not on open for example. But sure, let's have a look :). When I find time I will also have a look.

Chris2011 avatar Feb 28 '24 20:02 Chris2011