Skip to content

Array param without const #3

@jaclas

Description

@jaclas

Why in many BaseX interfaces/classes you don't use a const for array param, like this:

function Encode(data: TBytes): TBaseNcodingString; override;

It has a big impact on performance.
See:
https://www.delphitools.info/2010/07/28/all-hail-the-const-parameters/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions