[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] Patch: Opening RandomAccessFiles requires excessive per

From: David Daney
Subject: Re: [cp-patches] Patch: Opening RandomAccessFiles requires excessive permission
Date: Tue, 06 Dec 2005 11:38:47 -0800
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929)

Christian Thalinger wrote:
On Tue, 2005-12-06 at 10:00 -0600, Archie Cobbs wrote:

That's getting into the micro-optimzation realm, which is
fraught with danger and mistaken assumptions :-) E.g., on
some machines the time overhead of setting up a try/catch in
a method that wouldn't otherwise have one is higher than
the single comparison required to test for null. In particular,
any interpreter is going to have to test for null anyway,
so the second time it's already in cache, blah blah, etc.

"...setting up a try/catch..."?  What do you mean?  Agreed on the
interpreter thing, but who does benchmarks on interpreters?

On gcj using SJLJ exceptions there is overhead for entering a try block. And for the dwarf unwinder there is overhead in the unwinding tables (but not in the code) for each try/catch.

That you don't care about the implications for platforms other than your own, does not imply that they do not exist.

David Daney

reply via email to

[Prev in Thread] Current Thread [Next in Thread]