Worker CorePercent and MaximumCoreCount

Two questions on Workers:

  1. Is there any way to allow a user to change Worker.CorePercent or Worker.MaximumCoreCount in my macOS and Windows app? Asking as some users may want my app to run the process ASAP and not do anything else on the machine, while others may want to have it run using less resources in the background.
  2. If I set Worker.CorePercent to 75, is there any issue setting Worker.MaximumCoreCount to 99 to allow users that have lots of cores to make use of them?

Thanks

i guess u can set this 2 properties before call the start().

i set MaximumCoreCount to 128 because of unknow numbers of cores,
and percent to 90%.

https://documentation.xojo.com/topics/data_processing/faster_processing_using_the_worker_class.html#topics-data-processing-faster-processing-using-the-worker-class-properties

Thanks @MarkusR. I assumed you couldn’t set Worker.CorePercent or Worker.MaximumCoreCount in code as the autocomplete doesn’t seem to work for these properties in 2023r3. I tested and you are able to change these properties in code and they do make a difference when running the built app.

1 Like