Issue 20 in project dongle

1 view
Skip to first unread message

codesite...@google.com

unread,
Mar 14, 2007, 11:49:50 PM3/14/07
to dongle...@googlegroups.com
Issue 20: WoW-specific global aliases
http://code.google.com/p/dongle/issues/detail?id=20

New issue report by maorlando:
I noticed a lot of the code uses standard lua library calls (like
string.format, table.insert, etc.). WoW provides a slew of global aliases
to these functions which would both be more efficient and save a bit of
source size.

See the readme file for my wow-like lua distro for a complete list
(http://sf.net/projects/lua511wow)


Issue attributes:
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Mar 15, 2007, 3:21:18 AM3/15/07
to dongle...@googlegroups.com
Issue 20: WoW-specific global aliases
http://code.google.com/p/dongle/issues/detail?id=20

Comment #1 by Tekkub:
I never quite understood how global aliases helped in any way, someone want to
enlighten me? I know LOCAL aliases help speed up things a tad.

codesite...@google.com

unread,
Mar 15, 2007, 7:26:36 AM3/15/07
to dongle...@googlegroups.com
Issue 20: WoW-specific global aliases
http://code.google.com/p/dongle/issues/detail?id=20

Comment #2 by jnwhiteh:
string.format takes a global lookup, then a table index lookup.
strformat takes a global lookup
local strformat = string.format at the top of the file would be the best, and by far
makes the most sense to me. I'll do this after I've applied my outstanding patches.


Issue attribute updates:
Owner: jnwhiteh

codesite...@google.com

unread,
Mar 15, 2007, 7:30:37 AM3/15/07
to dongle...@googlegroups.com
Issue 20: WoW-specific global aliases
http://code.google.com/p/dongle/issues/detail?id=20

Comment #3 by Tekkub:
That was exactly what I was thinking :) If I was worried about lookup speed I would
skip the global alias and just create me a local alias *grin*

codesite...@google.com

unread,
Mar 19, 2007, 5:54:30 PM3/19/07
to dongle...@googlegroups.com
Issue 20: WoW-specific global aliases
http://code.google.com/p/dongle/issues/detail?id=20

Comment #4 by maorlando:
Then of course there's the middle option (at least for strings) of doing:

someString:format(blah, blah, blah)

Reply all
Reply to author
Forward
0 new messages