[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: RFC: ObjectInputStream (and related classes) performance patch
From: |
Jeroen Frijters |
Subject: |
RE: RFC: ObjectInputStream (and related classes) performance patch |
Date: |
Fri, 30 Jan 2004 17:38:05 +0100 |
Sascha Brawer wrote:
> Jeroen Frijters <address@hidden> wrote on Fri, 30 Jan 2004
> 16:13:55 +0100:
>
> >+ Hashtable fieldLookup = new Hashtable();
>
> A micro-optimization: All accesses to java.util.Hashtable are thread-
> safe, which constitutes an overhead. Using java.util.HashMap would be
> slightly faster.
I actually considered that, but I didn't want to introduce another
dependency (the current code already uses Hashtable).
Thanks for looking at the code.
Regards,
Jeroen