bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] SYMTAB["x"] is much slower than `x`


From: arnold
Subject: Re: [bug-gawk] SYMTAB["x"] is much slower than `x`
Date: Tue, 27 Nov 2018 01:27:58 -0700
User-agent: Heirloom mailx 12.4 7/29/08

Hi.

Peng Yu <address@hidden> wrote:

> The following example shows that SYMTAB["x"] is much slower than `x`.
> What is the difference between the implementation of SYMTAB["x"] and
> `x`.

When generating code, gawk can access the memory for 'x' directly.
SYMTAB["x"] is an array element access like most others, so it's
slower.

> Can the performance be improved for SYMTAB["x"]?

No.  Sorry.

Arnold



reply via email to

[Prev in Thread] Current Thread [Next in Thread]