Hi,

On 31.12.2012 12:48, Uli Schlachter wrote:
[...]
> This seems to be overhead due to function
> calls through LGI (C profilers blame lua code, lua profiler blame LGI's
> component.lua AFAIR).
[...]

On second thought, let's not blame LGI too early. I am really unsure about what
is causing this.

Uli

P.S.:
$ time lua -e 'l = require"lgi" ; c = l.cairo ; s = c.ImageSurface("ARGB32", 10,
10) ; r = c.Context(s) ; for s=1, 10000 do r:rectangle(1, 2, 3, 4) end'

real    0m0.178s
user    0m0.164s
sys     0m0.004s

(That means about 16.7 microseconds per call which is not that much, but
obviously slower than C (0.3 microseconds per call, factor 55))

-- 
my $key = "\x49\x03\x93\x08\x19\x94\x96\x94\x28\x93\x83\x04\x68\x28\xa8\xf5".
          "\x0a\xb9\x94\x02\x45\x81\x93\x1f\xbc\xd7\xf3\xad\x93\xf5\x32\x93";
my $cipher = Crypt::Rijndael->new( $key, Crypt::Rijndael::MODE_ECB() );
my $plain = $ciper->decrypt($daten);

-- 
To unsubscribe, send mail to [email protected].

Reply via email to