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

Re: [sc-dev] Use ZArchive for Object-readBinaryArchive, writeBinaryArchive




On 9 Jan 2006, at 14:21, stefan kersten wrote:

On Sun, Jan 08, 2006 at 12:21:32PM +0000, Scott Wilson wrote:
Since ZArchive is 'safe', I propose moving it to the main library (if
felix has no objections) and adjusting the Object-readBinaryArchive and writeBinaryArchive methods to use it. This might break some older code,
but since there was already some discussion of removing the old unsafe
binary archive support I thought this might be okay. The old binary
methods could if desired be renamed for legacy support.

Alternatively we could add new readZArchive and writeZArchive methods.

i'd vote for replacing the original methods.

Objections? Thoughts?

are there any limitations (speed, shared references, etc) in
ZArchive?

Maybe felix can elaborate. Seems pretty fast in my tests. I noticed it does have a version instance var, which makes me wonder if it might change in the future.

what's wrong with the primitives, btw?

They're dependent upon the instance variables in the corresponding classes not changing. Thus if any classes are changed old archives may become incompatible. I believe this has already happened. The text archives are safe for this, and so is ZArchive according to its help file.

S.