[Gambas-user] trimming extra spaces from within a string.

Christof Thalhofer 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'.

Alles Gute

Christof Thalhofer

-- 
Dies ist keine Signatur

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


More information about the User mailing list