-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Array param without const #3
Comments
@jaclas , thanks for the nice observation. |
Thanks for hint about SimpleBaseLib4Pascal, I switch to use this lib. |
@jaclas , well I wouldn't come to the conclusion that this Lib is obsolete for now just that no current improvements are being made at the moment. |
Ok, sorry for misunderstanding. I thought that since there is a new BaseXX coding library, the previous one is already dead. |
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/
The text was updated successfully, but these errors were encountered: