Skip to content

Commit

Permalink
chore: improve code sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
triniwiz committed Oct 13, 2023
1 parent 32c3011 commit e9b1366
Show file tree
Hide file tree
Showing 555 changed files with 106,885 additions and 33,830 deletions.
2 changes: 1 addition & 1 deletion apps/demo/nativescript.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
id: 'org.nativescript.plugindemo',
appResourcesPath: '../../tools/assets/App_Resources',
android: {
v8Flags: '--expose_gc',
v8Flags: '--expose_gc --allow-natives-syntax --turbo-fast-api-calls',
markingMode: 'none',
discardUncaughtJsExceptions: false,
},
Expand Down
10 changes: 10 additions & 0 deletions apps/demo/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ JSI
JS: CONSOLE TIME: TextDecoder: 0.646ms
*/

// const call = `
// function f(x, y) { return global.divide(x, y); }
// %PrepareFunctionForOptimization(f);
// f(100,50);
// %OptimizeFunctionOnNextCall(f);
// f(100,50);
// `;

// eval(call);

// : CONSOLE TIME: data: 4.250ms image data
Application.on('launch', (args) => {
require('@nativescript/canvas-polyfill');
Expand Down
1 change: 0 additions & 1 deletion apps/demo/src/plugin-demos/canvas.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,5 @@
<canvas:Canvas row="1" col="1" id="canvas4" width="100%" height="100%" ready="{{ canvasLoaded }}"/> -->

<!-- Multi Canvas -->

</GridLayout>
</Page>
Loading

0 comments on commit e9b1366

Please sign in to comment.