[Gambas-user] trimming extra spaces from within a string.
chrisml at deganius.de
Tue Nov 10 12:03:33 CET 2020
Am 10.11.20 um 05:57 schrieb Brian G:
> Hi sorry to be late to the party, I included a project with all the
> methods mentioned. I have included my version of the remove spaces
> using alloc and pointers in gambas, it is faster if it is over 5000
> characters. Run the project with profiling on.
Yes it (fixstring) is much faster but only with 'Fast Unsafe', otherwise
it is much slower (about 400 times!).
Interestingly all other methods do not benefit from 'Fast'.
And the editor in the IDE is heavily broken with 'Fast Unsafe Public Sub'.
Dies ist keine Signatur
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: OpenPGP digital signature
More information about the User