So I've been playing around with AI code generation in LabVIEW and it handled this problem fairly well. Using the MCP toolkit posted here, I used Claude Code. I don't have access to Nigel, and this has the added benefit of working in older versions of LabVIEW. I stuck with 2022 Q3. I told Claude to look at my LabVIEW source, and mentioned how I wanted to be faster, and hoping to approach the DLL implementation from OpenG. It gave these suggestions on how to improve performance:
I told it to make a separate library so benchmarks could be ran. It made the changes and after a little while it ran some tests and gave these results:
Data
Level
Fast Deflate now
OpenG DLL
Your original
Word-level text
6
31.8 ms
17.8 ms
3,716 ms
Word-level text
1
10.3 ms
3.9 ms
3,899 ms
Highly repetitive
6
2.6 ms
2.8 ms
35 ms
Highly repetitive
1
2.6 ms
1.0 ms
35 ms
Now the LabVIEW method is only at worse about 2 times as slow as the OpenG method, and at best can actually beat it. I've attached the code that it wrote. I did very little clean up. So in addition to having this now be somewhat useful as a compression tool, you can also see what kind of code it currently generates. It often isn't pretty. It is functional, and it has some level of documentation.
Faster ZLib LabVIEW With AI.zip