mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Credits go to /TG/, I just figured I'd do what the other codebases do and take it over for us as well. Changes: Optimises uniquelist() also renames it from uniquelist() to uniqueList() Test 1: 1,000,000 random numbers between 1 and 7 in a list. Clean out duplicates with current uniquelist(), once: self: 0.362 Clean out duplicates with my new uniqueList(), once: self: 0.184 Test 2: 3,000,000 random numbers between 1 and 7 in a list. Clean out duplicates with current uniquelist(), once: self: 1.069 Clean out duplicates with my new uniqueList(), once: self: 0.496