pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/NativeScript/android/pull/1792

ithubassets.com/assets/actions-902e75f4f51a80db.css" /> feat: dynamically register jni methods and use @FastNative & @CriticalNative by triniwiz · Pull Request #1792 · NativeScript/android · GitHub
Skip to content

feat: dynamically register jni methods and use @FastNative & @CriticalNative#1792

Open
triniwiz wants to merge 1 commit intomainfrom
feat/fast-y-crit
Open

feat: dynamically register jni methods and use @FastNative & @CriticalNative#1792
triniwiz wants to merge 1 commit intomainfrom
feat/fast-y-crit

Conversation

@triniwiz
Copy link
Copy Markdown
Member

@triniwiz triniwiz commented Nov 8, 2023

Using the new annotations to improve the runtime for our jni calls
@cla-bot cla-bot Bot added the cla: yes label Nov 8, 2023
Comment on lines +47 to 57
@FastNative
private native void runModule(int runtimeId, String filePath) throws NativeScriptException;

@FastNative
private native void runWorker(int runtimeId, String filePath) throws NativeScriptException;

@FastNative
private native Object runScript(int runtimeId, String filePath) throws NativeScriptException;

@FastNative
private native Object callJSMethodNative(int runtimeId, int javaObjectID, String methodName, int retType, boolean isConstructor, Object... packagedArgs) throws NativeScriptException;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if these should be FastNative. FastNative completely disables GC while it's running, and these could likely run for a good while.

callJSMethodNative is even trickier because we can go java->native->java->native multiple times in long running methods

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the fastest we can go for those would be !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy