Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12876] Create AST visitor/transformer for "pre-bind-methods-and-arguments"

GitHub Issuen/a
TypeSub-task
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2016-08-24T20:06:04.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsCLI, Code Processor, Core
Labelsast_transformation, performance
ReporterMatt Langston
AssigneeChris Barber
Created2013-02-26T22:34:48.000+0000
Updated2017-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.).

Comments

  1. Chris Barber 2016-08-24

    Code processor is dead.
  2. Lee Morris 2017-03-20

    Closing ticket as code processor is no longer supported.

JSON Source