[TIMOB-12876] Create AST visitor/transformer for "pre-bind-methods-and-arguments"
GitHub Issue | n/a |
---|---|
Type | Sub-task |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2016-08-24T20:06:04.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | CLI, Code Processor, Core |
Labels | ast_transformation, performance |
Reporter | Matt Langston |
Assignee | Chris Barber |
Created | 2013-02-26T22:34:48.000+0000 |
Updated | 2017-03-20T17:33:39.000+0000 |
Description
Titanium JavaScript functions with constant arguments will have their
arguments pre-bound on the native side of the bridge. For example,
Ti.API.log('foo') becomes T$2().
The JavaScript constants (e.g. strings, numbers and booleans) that are
passed to these native functions will be marshaled across the bridge
only once and will remain cached for subsequent lookups in a symbol
table. This will avoid repeated type conversions (e.g. JSStringRef <->
NSString, JSValueRef <-> NSNumber, etc.).
Code processor is dead.
Closing ticket as code processor is no longer supported.