I have an interesting problem with a VirtualTreeView component compiled in RELEASE mode with Delphi 10.

I have an interesting problem with a VirtualTreeView component compiled in RELEASE mode with Delphi 10.1 Berlin - it takes over 28 seconds to fill in about 40,000 rows (with VST.AddChild (nil), yes I know, not the fastest way to do it). Now, after compiling the exact same project with Delphi XE7 the executable fills the rows of the VST so fast it's basically an instant effect. 

The code is exactly the same, both times pulled form the SCM. I reduced the problematic loop down to a FOR loop in Delphi 10.1 only doing an .AddChild and nothing else (no data assignment etc), and that alone takes almost all of the 28 seconds itself. Funny enough a similar loop for a another VST works just fine in 10.1 just like it does in XE7. I have no clue what the problem is...

Has anyone else seen this? Looks to me like I'll have to keep compiling my release version with XE7...

Comments