[fpc-pascal] bitmask vs sets. Is there a performance difference?

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Mon Jan 25 12:35:38 CET 2016

On 2016-01-20 23:11, Sven Barth wrote:
> You cam check this by compiling with -al and comparing the assembler code.

It seems using Sets produce slightly smaller assembler code (2
instructions less) for the example code I posted. Attached is a comparison.

I guess the other benefit is that using Sets is more "pascal like" and
probably easier for more developers to understand.

  - Graeme -

My public PGP key:  http://tinyurl.com/graeme-pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bitmask_vs_set.png
Type: image/png
Size: 23723 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160125/7bf66b2c/attachment.png>

More information about the fpc-pascal mailing list