04-13-2023 02:42 PM - edited 04-13-2023 02:45 PM
LabVIEW 2023 Q3 has improved cache behavior for building applications, packed project libraries, and source distributions.
The first build will populate the cache, and then subsequent builds will be much faster.
Please test by using the Beta to build EXEs, PPLs, and source distributions. We’re not asking you to report on the speed of these builds, but we would like for you to verify the correctness of the output, especially for the second and subsequent builds of the same build specification.
04-20-2023 01:51 AM
I haven't had time to download the beta yet, but is there a way to force-clear the build cache?
If so, would this apply to the current build only (- would be nice!) or would it clear the entire build cache?
04-20-2023 09:19 AM
Tools>>Advanced>>Clear Compiled Object Cache...
This will clear all builds, not just the current one.
Modifying a build specification, however, will make LabVIEW force rebuild only that build specification.
Thanks for the feedback.
04-20-2023 10:47 AM
Is there an option/setting to force clearing the compiled cache before builds?
- global LabVIEW setting for all builds?
- build spec setting for individual builds?
Thanks!
04-20-2023 01:23 PM
@Jim_Kring wrote:
Is there an option/setting to force clearing the compiled cache before builds?
- global LabVIEW setting for all builds?- build spec setting for individual builds?
Can you please help me understand why you want this option? That would mean you're never utilizing the performance improvements that we've implemented.
04-20-2023 03:00 PM - edited 04-20-2023 03:01 PM
@Christina_R wrote:
@Jim_Kring wrote:
Is there an option/setting to force clearing the compiled cache before builds?
- global LabVIEW setting for all builds?- build spec setting for individual builds?
Can you please help me understand why you want this option? That would mean you're never utilizing the performance improvements that we've implemented.
Historically, I often have broken builds (due to broken VIs) that are fixed by clearing the compiled cache.
Since builds happen on a CI Server, I can live with the extra time to recompile, relative to the risk of a broken or faulty/corrupt build output.
Right now, I nearly always use a pre-build step that clears the compiled cache. Definitely for a release build.
I suspect many other people do this, too? Anyone else here do the same?
04-20-2023 03:52 PM
05-13-2023 04:12 PM
@Christina_R wrote:
@Jim_Kring wrote:
Is there an option/setting to force clearing the compiled cache before builds?
- global LabVIEW setting for all builds?- build spec setting for individual builds?
Can you please help me understand why you want this option? That would mean you're never utilizing the performance improvements that we've implemented.
Because I just spent 2 hours trying to figure out a failed build before I cleared the cache? (LV 20, cRIO RT build)
Will that 2 hours be made up by speeding up the build? Or is it a wash? I don't know, speed is good, but avoiding cache corruption is better!
05-13-2023 05:23 PM
The more invidious flavor of this is a corrupt build that succeeds in building but has buggy runtime behavior. I’ve come to distrust the cache enough that I can’t rely on it for anything other than local testing. It feels that enabling caching by default (unless it’s 💯% rock solid) is asking for trouble.
06-15-2023 03:48 AM
@Jim_Kring wrote:
I suspect many other people do this, too? Anyone else here do the same?
Yep, happened two times for me. And at first time was not easy to understand what is really going wrong.