lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On 11/30/10, Pierre-Yves Gérardy <> wrote:
> On Tue, Nov 30, 2010 at 20:17, Eric Wing <> wrote:
>> Thanks for trying it!
>  You're welcome :-)
> The iTunes example works, but the "LuaCocoa.import 'ScriptingBridge' "
> directive takes about 10 seconds to run (it loads all the frameworks first.
> Isn't there a more fine grained way to import frameworks?
> The full log is attached.
> Kind regards,
> Pierre-Yves

Yeah, LuaCocoa definitely needs a future release dedicated to
performance optimization. This is why I still call it a 0.1 release
instead of a 1.0 release.

I think most of the bottlenecks are related to parsing XML which I
suck at. (Lua spoiled me because I rarely actually needed to use XML.)
BridgeSupport metadata also contains references to "dependent"
frameworks which I am dutifully respecting which is why so many
frameworks get pulled in and processed. While these dependencies will
need to be respected, perhaps a future optimization could defer the
XML parsing to more lazy/on-demand if more efficient XML parsing
doesn't solve the problem.

Beginning iPhone Games Development