lua-users home
lua-l archive

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hallo,

On 14/12/15 17:28, Safwat Halaby wrote:
> 
> - How accurate is my analysis?
> - which approaches are better under what conditions?
> - How do the methods compare in terms of CPU and memory?
> - Is my assumption in "Approach 2" correct? (metatables are slower
> than direct access). If so, is the speed difference significant?
> - Is my assumption in "Approach 4" correct? (Creating the same closure
> X times uses more memory than creating 1 function and referencing it X
> times)
> - Is method 4 commonly used?
> 

These are the kind of questions where assuming gives you nothing. You
need to measure it.

- -alex
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJWbvATAAoJED2K1tOOAcTfVfsP/jn17q+2jJ9c1W7vuiATNlVl
5M5cHyvmLK/fMZFUQLCriJoKes1YMgQXFm99n3kTtKleHYwyQnspx4Iy7FIay1Ki
7RoT/5kdR+hZC7son/6By32dF8T1mSJr+q4Tb6QJRciSbELG7eCRUT/79PiN/qAj
Bkpty9mfS7JS/TFWmaJ63ZgeUO461r/fECmoemgpbRIKLrA+UW2VBawm1rXJROcf
43O1eSlpIOCnkV0aUYVpHBKtCkih0o7ZdBMFTECX0yTdwVq1LsS4XnrE50nIxPa2
Iy4L+o1NJdOepWal4epNNQaYSEUY43ZUkkZiE/3d+j7CZlCvQifjimwnopsTBtcy
O0acvrxg5WMylA3NoO2yCR/+9vMO+Ks8GIyQTMsmB1PK32ZihpE7/rgOrpbax9XK
DsL1xBhWVhin2kP5r/3MFO5C5RpWHA9sAvh1W/pmuB2xzYiuXWOtSPeBpoPGzgBE
0LgqC743WDEB/+ZmdJ6i/Q4l3FlAM8gU1MUqDIl1ClBxM6upaIofIIt9X1YhVAsb
6fdt5W6MveZbVEJbLwkcT1inSD7ZYLaCg6XctDDHlgfbOPkKmgpa/xoG+/z9BtMX
PkuCzL3kUg5FgnEyGRQ45sYjxtb8zYZNp1lzXlS2poKuXnd+56niIR7kL0sMDJ0O
zRn1t0lqnvNvShjfkRYi
=gdHG
-----END PGP SIGNATURE-----