[prev in list] [next in list] [prev in thread] [next in thread]
List: lua-l
Subject: Re: Metatables for primitives performance?
From: "Paul Chiusano" <paul.chiusano () gmail ! com>
Date: 2006-03-28 14:43:39
Message-ID: a9af71b70603280643s55ebea73i10306cd0e289e04a () mail ! gmail ! com
[Download RAW message or body]
> > Also, I notice that overriding any of the operator
> > metamethods (like __div) for numbers has no effect. Is this for
> > performance reasons?
>
> Yes, very much so. Requiring a check for every primitive
> operation on numbers would slow Lua to a crawl.
Makes perfect sense. Thanks.
-Paul
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic