MySQL: fix performance issues
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
The attached patch fixes performance issues in MySQL code:
1.) InternalStrToFloat and InternalStrToCurrency:
Honestly, the "Tmp := Tmp + ???" in a loop is a bad joke...
2.) TConnectionName.MySQLWriteData:
SetString(Src, Source, Len); is executed even if Src is not used. Bye bye performance for big blobs and strings.
Mantis conversion info:
- Mantis ID: 33919
- Fixed in version: 3.1.1
- Fixed in revision: 39339 (#566a6d28).
- Target version: 3.2.0