faster ZipEntry writing?
hi,
i have a class that needs to write a bunch of zip entries. I am trying to streamline
it, and my biggest chokepoint is my function that instantiates the next zipEntry.
Here is my question:
Once i've written my current zipEntry, is there a way to rename the same zipEntry and reuse it (so to speak), or do i always have to call the constructor in order to
assign its name?
thanks
[427 byte] By [
pnandrusa] at [2007-10-2 8:32:40]

Are you sure that this is where the bottleneck is (could this just be slow the first time)?
Which constructor are you using?
As far as I can tell from a quick look at the source the construction of a ZipEntry does very little; except possibly when the class is loaded as it does some static stuff that calls a native method.
jbisha at 2007-7-16 22:33:52 >

lameness,
yes, you're right. i was focusing on that part and didn't look a little farther down
to find the
ZOS.write(.....) function that is also included.....
that must be what's slowing it down. i will do some further eval and (most likely)
post a follow up question soon. thanks