Patch: Minor object serialization optimization

Per Bothner per@bothner.com
Sat Sep 7 13:57:00 GMT 2002


Anthony Green wrote:
> The overhead of the debugging support in ObjectInputStream seems excessive (from
> visual inspection at least :-). 
> Here's one of the obvious offenders.  I think we should consider wrapping
> all calls to dumpElementln with Configuration.DEBUG && dump checks.

I have an alternative patch I've had sitting for a while.
Of course it only makes a difference if Configuration.DEBUG
is not constantly false, which I guess is never in production,
which is all we care about.  But if Configuration.DEBUG is non-false,
then my code is at least more compact (4 vs 6 method calls),
and possibly faster.

Either is ok to check in.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ois.patch
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20020907/b61b40ff/attachment.ksh>


More information about the Java-patches mailing list