开发者

Groovy slow to load on first call from Java

开发者 https://www.devze.com 2022-12-30 05:33 出处:网络
I am using Groovy to do some calculations, within an RCP app. When I first click the button that calls the Groovy code, I get a bit of a delay, which doesn\'t exist on the next开发者_运维百科 and subs

I am using Groovy to do some calculations, within an RCP app. When I first click the button that calls the Groovy code, I get a bit of a delay, which doesn't exist on the next开发者_运维百科 and subsequent clicks. Is there any way I can warm the cache (so to speak) ?


If it's calling the groovy code the first time that slows you down, can't you call the groovy code sometime earlier? Maybe even spin off another thread just to call it?

0

精彩评论

暂无评论...
验证码 换一张
取 消