Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: [joist-dev] Inserting $Id$ into files

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

Re: [joist-dev] Inserting $Id$ into files

Author Jon Stevens <jon at latchkey dot com>
Full name Jon Stevens <jon at latchkey dot com>
Date 2000-10-04 14:42:02 PDT
Message on 10/4/2000 2:23 PM, "Ed Korthof" <edk at collab dot net> wrote:

> Let's keep it in perspective. The $Id$ strings are generally less than 80
> bytes; and Java's overhead per String object is probably less than 50
> bytes. (I did do some simple tests to verify this.) But lets be generous
> and say that each String requires 200 bytes. (A fair overestimate.)
>
> If we had 10,000 such classes, it'd still take only 2MB (far more than
> we'll use anytime soon -- and if/when we do, I doubt 2MB will be
> significant). That's quite worthwhile, if it provides even a minor
> advantage -- which it does.

Right...10,000 classes are now 10,000 more objects in memory as well. Ed,
you are Mr. Optimization Man...I don't see how you think this is good.

> We can find javadocs on disk, and even the release ID in the jar file
> (which I intend to include in the jar file name for anzu, at least). But
> that doesn't ensure that you're loading the same version that you think
> you are. Putting the IDs in the file gives that as an advantage -- you
> can find the actual version loaded, not the one you think should be.

You didn't address my query about how you are going to query each object in
memory for its version information. You are going down to the granularity of
the individual object level when you really only need the .jar level.

My guestimate is that figuring out what files are in a classpath will be a
_hell_ of a lot easier than trying to query each and every object in memory
for its VERSION string.

Maybe a better idea for solving the problem you describe above would be to
add a class to the .jar file with a Main in it that allows you to execute
the .jar file and return the version information.

java -jar anzu.jar Version

-jon

« Previous message in topic | 5 of 26 | Next message in topic »

Messages

Show all messages in topic

Inserting $Id$ into files deploy Deployment Pseudo-user 2000-10-03 23:14:23 PDT
     Re: [joist-dev] Inserting $Id$ into files dlr Daniel Rall 2000-10-03 23:19:18 PDT
     Re: [joist-dev] Inserting $Id$ into files Jon Stevens <jon at latchkey dot com> Jon Stevens <jon at latchkey dot com> 2000-10-04 11:37:59 PDT
         Re: [joist-dev] Inserting $Id$ into files edk Ed Korthof 2000-10-04 14:23:04 PDT
             Re: [joist-dev] Inserting $Id$ into files Jon Stevens <jon at latchkey dot com> Jon Stevens <jon at latchkey dot com> 2000-10-04 14:42:02 PDT
                 Re: [joist-dev] Inserting $Id$ into files edk Ed Korthof 2000-10-04 14:48:13 PDT
                     Re: [joist-dev] Inserting $Id$ into files Jon Stevens <jon at latchkey dot com> Jon Stevens <jon at latchkey dot com> 2000-10-04 15:01:48 PDT
                         Re: [joist-dev] Inserting $Id$ into files deploy Deployment Pseudo-user 2000-10-04 15:18:39 PDT
                             Re: [joist-dev] Inserting $Id$ into files Jon Stevens <jon at latchkey dot com> Jon Stevens <jon at latchkey dot com> 2000-10-04 15:28:46 PDT
                                 Re: [joist-dev] Inserting $Id$ into files dlr Daniel Rall 2000-10-04 21:39:08 PDT
                             Re: [joist-dev] Inserting $Id$ into files dlr Daniel Rall 2000-10-04 21:37:40 PDT
                 Re: [joist-dev] Inserting $Id$ into files Manoj Kasichainula <manoj at collab dot net> Manoj Kasichainula <manoj at collab dot net> 2000-10-04 15:29:24 PDT
                     Re: [helm-dev] Re: [joist-dev] Inserting $Id$ into files deploy Deployment Pseudo-user 2000-10-04 15:31:58 PDT
                         Re: [joist-dev] Re: [helm-dev] Re: [joist-dev] Inserting $Id$ into files Jon Stevens <jon at latchkey dot com> Jon Stevens <jon at latchkey dot com> 2000-10-04 15:44:12 PDT
                             Re: [joist-dev] Re: [helm-dev] Re: [joist-dev] Inserting $Id$ into files edk Ed Korthof 2000-10-04 15:52:50 PDT
                                 Re: [joist-dev] Re: [helm-dev] Re: [joist-dev] Inserting $Id$ into files Jon Stevens <jon at latchkey dot com> Jon Stevens <jon at latchkey dot com> 2000-10-04 16:04:32 PDT
                                     Re: [helm-dev] Re: [joist-dev] Re: [helm-dev] Re: [joist-dev] Inserting $Id$ into files edk Ed Korthof 2000-10-04 16:24:20 PDT
                                         Re: Inserting $Id$ into files Jon Stevens <jon at latchkey dot com> Jon Stevens <jon at latchkey dot com> 2000-10-04 16:33:12 PDT
                                         Re: Inserting $Id$ into files edk Ed Korthof 2000-10-04 16:34:56 PDT
                                         Re: [helm-dev] Re: [joist-dev] Re: [helm-dev] Re: [joist-dev] Inserting $Id$ into files Manoj Kasichainula <manoj at collab dot net> Manoj Kasichainula <manoj at collab dot net> 2000-10-04 16:57:25 PDT
                         Re: [helm-dev] Re: [joist-dev] Inserting $Id$ into files Manoj Kasichainula <manoj at collab dot net> Manoj Kasichainula <manoj at collab dot net> 2000-10-04 15:55:47 PDT
                         Re: [helm-dev] Re: [joist-dev] Inserting $Id$ into files dlr Daniel Rall 2000-10-04 21:57:32 PDT
                             Re: Inserting $Id$ into files edk Ed Korthof 2000-10-05 01:21:41 PDT
                     Re: [helm-dev] Re: [joist-dev] Inserting $Id$ into files dlr Daniel Rall 2000-10-04 16:11:57 PDT
                 Re: [joist-dev] Inserting $Id$ into files dlr Daniel Rall 2000-10-04 16:10:25 PDT
Page: of 2 « Previous | Next »
Messages per page: