[Gambas-bugtracker] Bug #1701: Very Slow 33times pointers l = long@(xxxpointer) notation compared to memcpy(varptr(l), MyPointer, sizeof(gb.long))

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Mon Dec 23 11:06:45 CET 2019


http://gambaswiki.org/bugtracker/edit?object=BUG.1701&from=L21haW4-

Comment #3 by Benoît MINISINI:

It shouldn't, you should report a bug. Unless you use FAST on an unimplemented feature ('ByRef' for example).

It checks for valid memory by intercepting segmentation fault signals. This is why it is so slow.

I have just implemented in the just-in-time compiler unsafe implementation of Byte@, Short@, and so on. They just read the memory pointer directly without checking everything. The code is not pushed yet.




More information about the Bugtracker mailing list