[Lazarus] unit Masks vs. unit FPMasks

Bart bartjunk64 at gmail.com
Wed Feb 24 11:47:44 CET 2021

On Wed, Feb 24, 2021 at 10:02 AM Bart <bartjunk64 at gmail.com> wrote:

> Of course that is NOT a reason not to improve it: O(n^4) is just terrible.

To put this discussion in a little perspective.
Given a string S (UTF8 encoded) with Utf8Length=1000.
GetCodePoint(S,1000) on my laptop takes 0.00439 msecs to perform.
So 10 thousand of these lookups cost appr. 44 ms.
This is kind of a worst case scenario.
You are not very likely to have strings that long in TMask.MatchesMask
(and certainly not in a MaskEdit).


More information about the lazarus mailing list