02.03.2011 5:24, Jonas Maebe wrote:
To a small, non-zero sized memory block.

Memory allocation is time cost. Either user code should compare that for the zero bytes it should not call a GetMem or GetMem can compare this for user. Since GetMem already has a condition which compares for 0 - it is be the best place for doing this.

Therefore FPC GetMem is not only incompatible with delphi GetMem but also can slowdown an application if it relies on GetMem logic and does not have a special checks for Count = 0 case.

Best regards,
Paul Ishenin
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to