Forum Replies Created

Viewing 1 of 1 posts
  • William Alexander Aldana Carvajal

    Member
    January 31, 2020 at 8:27 pm

    List.Size() is slow because needs to count all the elements in the collection.

    List.IsEmpty() only checks zero position has value.

    if you joins list != null and !list.IsEmpty() you will avoid possible null exceptions.

    I've read the difference is approximately 10%. I have not checked it but has a sense

     

Viewing 1 of 1 posts

Popular Salesforce Blogs

Popular Salesforce Videos