Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
15.013 Beiträge
 
#1

When sorting a “StringList” is very costly

  Alt 5. Jan 2021, 15:20
The following code looks innocuous but slows down a program significantly: Yes it’s Quicksort and it sorts strings in a TCheckListBox’s Items property, swapping not only the strings but also the objects and the Checked values. Now, run this with, lets say 100 entries. That shouldn’t be any problem for Quicksort, should it? But it [...]

Weiterlesen...
  Mit Zitat antworten Zitat