Avoid Lists, Use Arrays

List processing is slow – there actually is no list data type in ColdFusion, lists are simply strings. Any list processing requires lots of string manipulation, and that is time consuming (even more so in ColdFusion MX). Lists were originally intended as a way to work with data like form fields and SQL IN clauses (which use lists), and not as an actual data type. If you need to work with sets of data you are almost always better off using arrays, and possibly even converting your lists to arrays before you use them. (Applies to: ColdFusion MX)

Leave a Reply