Skip to Main Content
InterSystems Ideas

Have an idea, suggestion, or something that doesn’t work as expected in InterSystems products or services? Share it here on the InterSystems Ideas Portal.

The Ideas Portal is where community members can propose improvements, report bugs, and help influence the product roadmap across InterSystems products and the overall developer experience. 22% of submitted ideas are implemented by InterSystems or members of the Developer Community.

💡 Ideas and bugs are both welcome, no matter how big or small. You can submit feature requests, usability improvements, workflow suggestions, and bug reports. Whether you’re an experienced expert or just getting started, your fresh perspective is valuable.

🛠️ About bugs and fixes. If you have access to InterSystems WRC, please submit bugs there for immediate action. Bug reports submitted through the Ideas Portal are reviewed and tracked, but do not guarantee immediate resolution.

Start by sharing what could be better - the community and our teams will help take it from there.

Status Will not implement
Categories InterSystems IRIS
Created by Alex Woodhead
Created on Aug 1, 2023

AntiMatter Code accelerator

SQL Engines employ "query rewrite" to effect a more efficient query to supplement user expertise or application knowledge.

Can Mac / Int code generated by Classes be accelerated in a similar way?

Beyond locating inefficient and discouraged code anti-patterns influenced by documented guidance, the idea here is to implement a Mac / Int code rewriter for a FULL "read-ahead" of Mac / Int code base to identify implementation optimizations that can be substituted to accelerate existing int code compiled to obj code.

Speculating some ideas to demonstrate principle:

  • Replacing once set variable with literal ( as if had been a macro substitution )

  • In-lining to avoid method call eg: within a loop

  • Pre-calculate static numeric

  • Pre_concatenate strings

  • Switch to naked-global syntax when useful

  • Substitute more efficient commands or expressions

  • Drop unreachable code / code blocks ( when procedure block = 1)

  • Flatten unnecessary code structure

  • Internal and private Variable / Method shortened / obfuscated

  • Assist code automation goals like rewriting for code generator emitted output to be more efficient

Benifits:

  • Can improve existing code bases by recompilation

  • Potential smaller code footprint for routine memory cache

  • Faster code execution

  • Faster generated code ( code generator methods, DTL , BPL, Rules )

  • ADMIN RESPONSE
    May 6, 2024

    Thank you for submitting the idea. Based on information from our experts the status of your idea was changed to "Will not implement". Please look for details in the comments on the idea. Good luck!