Improve Performance of Tooling and Other Calls #5777
Replies: 2 comments
-
Hi @JosephAllen, thanks for opening this and providing feedback. We're currently focusing on performance work for deploys & retrieves Performance Enhancements and will soon start working on the Apex commands (running tests, anon execution, etc). The approach we'll follow is to run this from a new library which is a bit faster than running this from the core extension exports and current implementation. I'll make sure to update this thread once we start publishing the changes. |
Beta Was this translation helpful? Give feedback.
-
@lcampos , thanks. From what I am seeing the issue appears to be authenticating and then using parts of the cli, versus the SOAP API. With a valid token, anon apex runs really fast with a direct SOAP call. That's what my stop gap extension does. |
Beta Was this translation helpful? Give feedback.
-
If we use
const sfdxCoreExports = vscode.extensions.getExtension('salesforce.salesforcedx-vscode-core')!.exports;
, we may be able to remove the need for the@salesforce\core
dependecy.I created a simple Extension that executes anonymous apex. I am seeing 3-10 times better performance using an
extensionDependencies
tosalesforce.salesforcedx-vscode-core
and implementingvscode.extensions.getExtension
Here is the extension I created: apex-code-runner
Even when I call the auth methods before my callouts to the SOAP Apex api, I am still seeing much better performance that the Extension Pack command that do the same.
Let me know how I can help.
Certified Application Arch, Certified Systems Arch, Dev II Certification
Beta Was this translation helpful? Give feedback.
All reactions