[Gambas-user] Can JSON.Decode be faster?
Benoît Minisini
g4mba5 at gmail.com
Sat Jan 20 15:14:11 CET 2018
Le 20/01/2018 à 09:51, Fabien Bodard a écrit :
> Hi, Benoit... I don't really understand why using std function call is
> so slower than Gosub calls :-/
>
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.
--
Benoît Minisini
More information about the User
mailing list