View Single Post
  #1  
Old 10-11-2012, 11:11 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default list.IsEmpty() vs. list.Count()==0

I'm all for not fixing something that isn't broke, so this is more of a muse than anything...


Would there be any realized benefits in converting 'empty list' checks to the 'list.isempty()' method?

There are a few in the code already, but there are a lot of 'list.count()==0' types in there as well.


It probably wouldn't do anything for small population servers, but it might save some cycles on heavy-use ones.
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote