[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-debug-dev] Vector optimization
|
You should probably look for other collection classes too (ArrayList,
LinkedList, HashMap, etc).
jkca
Jared Burns
<jared-eclipse@xxxxxxxxx> To: jdt-debug-dev@xxxxxxxxxxx, platform-debug-dev@xxxxxxxxxxx
Sent by: cc:
platform-debug-dev-admin@e Subject: [platform-debug-dev] Vector optimization
clipse.org
01/15/2002 04:38 PM
Please respond to
platform-debug-dev
As a simple optimization, I'd like to search the debug plugins for
references
to the no-parameter constructor of Vector (Vector()) and, whereever
sensible
replace it with a call to the constructor with a size (Vector(someInt)).
Jed and I were looking through the code recently and found quite a few
cases
where we know what the length of a Vector will be but we initialize it to
empty anyway. This results in unneccessary array creation/copying under the
hood.
I'll hold off on doing this until tomorrow in case there are any
objections.
- Jared
_______________________________________________
platform-debug-dev mailing list
platform-debug-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-debug-dev