Hi Antonio,

On 19.04.23 20:58, Antonio wrote:
+1 to all these.

The problem I have is that the Lucene indexer seems to be very CPU intensive, and my laptop starts levitating with all fans at full speed.

right. MT will make this worse as already mentioned since many notebooks are not made for sustained load for more than a few minutes.



This is a problem when working on open spaces, because the laptop becomes a sort of drone, but without remote control. Luckily the battery dies soon and the laptop ends up crashing quickly from a not very high altitude :-).

I mean this is partially a user error since you an turn indexing off while traveling :)



Now, seriously, it would be great if the indexing could be performed with a single low priority thread, gradually, even during several days, if required.


well.. not sure about this, but this is probably (easily) possible for the first phase of the extraction since we could sleep in the callback - assuming it is the right thread which it likely is. The lucene merge thread is not under our control however. (btw thread priorities won't influence system load)

but before we add a turtle mode checkbox, lets take a look if this helps:

https://github.com/apache/netbeans/pull/4999

 - canceling a dl or extraction will turn index downloads off for a while (for testing purposes this is just 2mins but this should be much longer)

 - first download request will ask for user permission (per remote repository, setting is not persisted atm)

 - MT is enabled by default

 - rest is in the old PR text


nothing is configurable atm. This is just a dev build for testing purposes. (download via github actions summary page)

-mbien



Cheers,
Antonio



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to