This link has been bookmarked by 9 people . It was first bookmarked on 01 Apr 2008, by Navneet Kumar.
-
01 Apr 08
-
Avoid creating objects in frequently used routines
-
presize any collection object to be as big as it will need to be
-
Objects need to be created before they can be used, and garbage-collected when they are finished with
-
Wherever possible, you should replace multiple objects with a single object
-
If
Booleans had been canonicalized, allBooleancomparisons could be done by identity: comparison by identity is always faster than comparison by equality, because identity comparisons are simply pointer comparisons.[4] -
one way to avoid garbage collection: fewer objects means less to garbage-collect
-
Presize collection objects.
-
-
10 Jan 08
-
18 Oct 07
-
25 Sep 07
-
12 Jan 06
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.