RemoveLink

BlitzMax Forums/BlitzMax Beginners Area/RemoveLink

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Well RemoveLink is much faster than ListRemove in a benchmark. Whether it actually matters depends on a lot of things, most importantly the size of said lists, and whether they's sorted or not.

It also depends on how you're determining when to move them. If you're itterating through one of the lists anyway using EachIn, you could replace that with a manual itteration using FirstLink/NextLink. If you have less than 50 or so elements between the 2 lists, I wouldn't sweat it tho'.