[Gambas-user] Can JSON.Decode be faster?

Christof Thalhofer chrisml at deganius.de
Sun Jan 21 21:17:26 CET 2018


Am 20.01.2018 um 15:14 schrieb Benoît Minisini:

> Because a function call must, when entering it:
> 
> - Save the virtual machine registers.
> - Push arguments on the stack.
> - Convert these arguments.
> - Check for optional arguments.
> - Allocate stack for local variables.
> 
> And when exiting it:
> 
> - Handle ByRef arguments.
> - Pop the stack.
> - Restore the virtual machine registers.

Good to know! If one needs speed, use Gosub instead of methods.

One question for me remains – just by interest: Could the interpreter be
programmed to do such an optimization by itself?


Alles Gute

Christof Thalhofer

-- 
Dies ist keine Signatur

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180121/08a956a3/attachment.sig>


More information about the User mailing list