Can I modify a constant in the RTL class System.Classes.TStream and rebuild it at runtime in Delphi XE6?
I am trying to work around a known ugly performance limitation in System.Classes.pas, which has a 1980s era constant buffer limit ($F000) that looks like this: function TStream.CopyFrom(const Source: TStream; Count: Int64): Int64; const MaxBufSize = $F000; .... This is causing major performance penalties in our Delphi application. In delphi XE2 through XE5, we were able to modify this and use one of the following approaches: I could modify the Delphi sources, and then, by invoking dcc32.exe from a batch file, rebuild the System.Classes.dcu file in the Delphi library folder. I realize this is