Commit | Line | Data |
a5271820 |
1 | Mon May 5 10:24:16 IST 2003 Abhijit Menon-Sen <ams@wiw.org> |
2 | |
3 | Version 2.07 |
4 | |
5 | Minor bugfixes (self-tied objects are now correctly stored, as |
6 | are the results of additions larger than INT_MAX). |
7 | |
a2307be4 |
8 | Mon Oct 7 21:56:38 BST 2002 Nicholas Clark <nick@ccl4.org> |
9 | |
10 | Version 2.06 |
11 | |
12 | Remove qr// from t/downgrade.t so that it will run on 5.004 |
13 | Mention $File::Spec::VERSION a second time in t/forgive.t so that it |
14 | runs without warnings in 5.004 (this may be a 5.00405 bug I'm working |
15 | round) |
16 | Fix t/integer.t initialisation to actually generate 64 bits of 9c |
17 | Fix comparison tests to use eval to get around 64 bit IV conversion |
18 | issues on 5.6.x, following my t/integer.t ^ precedence bug found by |
19 | Rafael Garcia-Suarez |
20 | Alter t/malice.t to work with Test/More.pm in t/, and skip individual |
21 | subtests that use $Config{ptrsize}, so that the rest of the test can |
22 | now be run with 5.004 |
23 | Change t/malice.t and the error message in check_magic in Storable.xs |
24 | from "Pointer integer size" to "Pointer size" |
25 | Remove prerequisite of Test::More from Makefile.PL |
26 | Ship Test::Builder, Test::Simple and Test::More in t |
27 | |
9cfdba97 |
28 | Thu Oct 3 08:57:22 IST 2002 Abhijit Menon-Sen <ams@wiw.org> |
29 | |
30 | Version 2.05 |
31 | |
32 | Adds support for CODE references from Slaven Rezic |
33 | <slaven.rezic@berlin.de>. |
34 | |
17374ab3 |
35 | Fri Jun 7 23:55:41 BST 2002 Nicholas Clark |
36 | |
37 | Version 2.04 |
38 | |
39 | Bug fix from Radu Greab <radu@netsoft.ro> (plus regression test) |
40 | to fix a recently introduced bug detected by Dave Rolsky. |
41 | Bug was that for a non threaded build, the class information was |
42 | being lost at freeze time on the first object with a STORABLE_freeze |
43 | hook. Consequentially the object was not blessed at all when thawed. |
44 | (The presence (or lack) of STORABLE_thaw was irrelevant; this was |
45 | a store-time data lost bug, caused by failure to initialize internal |
46 | context) |
47 | The bug was introduced as development perl change 16442 (on |
48 | 2002/05/07), so has been present since 2.00. |
49 | Patches to introduce more regression tests to reduce the chance of |
50 | a reoccurance of this sort of goof are always welcome. |
51 | |
ee0f7aac |
52 | Thu May 30 20:31:08 BST 2002 Nicholas Clark <nick@ccl4.org> |
53 | |
8932d55c |
54 | Version 2.03 Header changes on 5.6.x on Unix where IV is long long |
55 | |
56 | 5.6.x introduced the ability to have IVs as long long. However, |
57 | Configure still defined BYTEORDER based on the size of a long. |
58 | Storable uses the BYTEORDER value as part of the header, but |
59 | doesn't explicity store sizeof(IV) anywhere in the header. |
60 | Hence on 5.6.x built with IV as long long on a platform that |
61 | uses Configure (ie most things except VMS and Windows) headers |
62 | are identical for the different IV sizes, despite the files |
63 | containing some fields based on sizeof(IV) |
64 | |
65 | 5.8.0 is consistent; all platforms have BYTEORDER in config.h |
66 | based on sizeof(IV) rather than sizeof(long). This means that |
67 | the value of BYTEORDER will change from (say) 4321 to 87654321 |
68 | between 5.6.1 and 5.8.0 built with the same options to Configure |
69 | on the same machine. This means that the Storable header will |
70 | differ, and the two versions will wrongly thing that they are |
71 | incompatible. |
72 | |
73 | For the benefit of long term consistency, Storable now |
74 | implements the 5.8.0 BYTEORDER policy on 5.6.x. This means that |
75 | 2.03 onwards default to be incompatible with 2.02 and earlier |
76 | (ie the large 1.0.x installed base) on the same 5.6.x perl. |
77 | |
78 | To allow interworking, a new variable |
79 | $Storable::interwork_56_64bit is introduced. It defaults to |
80 | false. Set it to true to read and write old format files. Don't |
81 | use it unless you have existing stored data written with 5.6.x |
82 | that you couldn't otherwise read, or you need to interwork with |
83 | a machine running older Storable on a 5.6.x with long long IVs |
84 | (i.e., you probably don't need to use it). |
85 | |
2aeb6432 |
86 | Sat May 25 22:38:39 BST 2002 Nicholas Clark <nick@ccl4.org> |
87 | |
25f64a11 |
88 | Version 2.02 |
89 | |
90 | Rewrite Storable.xs so that the file header structure for write_magic |
91 | is built at compile time, and check_magic attempts to the header in |
92 | blocks rather than byte per byte. These changes make the compiled |
93 | extension 2.25% smaller, but are not significant enough to give a |
94 | noticeable speed up. |
2aeb6432 |
95 | |
db670f21 |
96 | Thu May 23 22:50:41 BST 2002 Nicholas Clark <nick@ccl4.org> |
97 | |
25f64a11 |
98 | Version 2.01 |
99 | |
100 | - New regression tests integer.t |
101 | - Add code to safely store large unsigned integers. |
102 | - Change code not to attempt to store large integers (ie > 32 bits) |
103 | in network order as 32 bits. |
104 | |
105 | *Never* underestimate the value of a pathological test suite carefully |
106 | crafted with maximum malice before writing a line of real code. It |
107 | prevents crafty bugs from stowing away in your released code. |
108 | It's much less embarrassing to find them before you ship. |
109 | (Well, never underestimate it if you ever want to work for me) |
110 | |
8989364b |
111 | Fri May 17 22:48:59 BST 2002 Nicholas Clark <nick@ccl4.org> |
112 | |
25f64a11 |
113 | Version 2.0, binary format 2.5 (but writes format 2.4 on pre 5.7.3) |
114 | |
115 | The perl5 porters have decided to make sure that Storable still |
116 | builds on pre-5.8 perls, and make the 5.8 version available on CPAN. |
117 | The VERSION is now 2.0, and it passes all tests on 5.005_03, 5.6.1 |
118 | and 5.6.1 with threads. On 5.6.0 t/downgrade.t fails tests 34 and 37, |
119 | due to a bug in 5.6.0 - upgrade to 5.6.1. |
120 | |
121 | Jarkko and I have collated the list of changes the perl5 porters have |
122 | from the perl5 Changes file: |
123 | |
124 | - data features of upcoming perl 5.8.0 are supported: Unicode hash |
125 | keys (Unicode hash values have been supported since Storable 1.0.1) |
126 | and "restricted hashes" (readonly hashes and hash entries) |
127 | - a newer version of perl can now be used to serialize data which is |
128 | not supported in earlier perls: Storable will attempt to do the |
129 | right thing for as long as possible, croaking only when safe data |
130 | conversion simply isn't possible. Alternatively earlier perls can |
131 | opt to have a lossy downgrade data instead of croaking |
132 | - when built with perls pre 5.7.3 this Storable writes out files |
133 | with binary format 2.4, the same format as Storable 1.0.8 onwards. |
134 | This should mean that this Storable will inter-operate seamlessly |
135 | with any Storable 1.0.8 or newer on perls pre 5.7.3 |
136 | - dclone() now works with empty string scalar objects |
137 | - retrieving of large hashes is now more efficient |
138 | - more routines autosplit out of the main module, so Storable should |
139 | load slightly more quickly |
140 | - better documentation |
141 | - the internal context objects are now freed explicitly, rather than |
142 | relying on thread or process exit |
143 | - bugs fixed in debugging trace code affecting builds made with 64 bit |
144 | IVs |
145 | - code tidy-ups to allow clean compiles with more warning options |
146 | turned on avoid problems with $@ getting corrupted on 5.005_03 if |
147 | Carp wasn't already loaded |
148 | - added &show_file_magic, so you can add to /etc/magic and teach |
149 | Unix's file command about Storable files |
150 | |
151 | We plan to keep Storable on CPAN in sync with the Perl core, so |
152 | if you encounter bugs or other problems building or using Storable, |
153 | please let us know at perl5-porters@perl.org |
154 | Patches welcome! |
155 | |
596596d5 |
156 | Sat Dec 1 14:37:54 MET 2001 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
157 | |
25f64a11 |
158 | This is the LAST maintenance release of the Storable module. |
159 | Indeed, Storable is now part of perl 5.8, and will be maintained |
160 | as part of Perl. The CPAN module will remain available there |
161 | for people running pre-5.8 perls. |
596596d5 |
162 | |
25f64a11 |
163 | Avoid requiring Fcntl upfront, useful to embedded runtimes. |
164 | Use an eval {} for testing, instead of making Storable.pm |
165 | simply fail its compilation in the BEGIN block. |
596596d5 |
166 | |
25f64a11 |
167 | store_fd() will now correctly autoflush file if needed. |
596596d5 |
168 | |
6e0ac6f5 |
169 | Tue Aug 28 23:53:20 MEST 2001 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
170 | |
25f64a11 |
171 | Fixed truncation race with lock_retrieve() in lock_store(). |
172 | The file has to be truncated only once the exclusive lock is held. |
6e0ac6f5 |
173 | |
25f64a11 |
174 | Removed spurious debugging messages in .xs file. |
6e0ac6f5 |
175 | |
e993d95c |
176 | Sun Jul 1 13:27:32 MEST 2001 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
177 | |
25f64a11 |
178 | Systematically use "=over 4" for POD linters. |
179 | Apparently, POD linters are much stricter than would |
180 | otherwise be needed, but that's OK. |
e993d95c |
181 | |
25f64a11 |
182 | Fixed memory corruption on croaks during thaw(). Thanks |
183 | to Claudio Garcia for reproducing this bug and providing the |
184 | code to exercise it. Added test cases for this bug, adapted |
185 | from Claudio's code. |
e993d95c |
186 | |
25f64a11 |
187 | Made code compile cleanly with -Wall (from Jarkko Hietaniemi). |
e993d95c |
188 | |
25f64a11 |
189 | Changed tagnum and classnum from I32 to IV in context. Also |
190 | from Jarkko. |
e993d95c |
191 | |
8be2b38b |
192 | Thu Mar 15 01:22:32 MET 2001 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
193 | |
25f64a11 |
194 | Last version was wrongly compiling with assertions on, due |
195 | to an edit glitch. That did not cause any problem (apart from |
196 | a slight performance loss) excepted on Win* platforms, where the |
197 | assertion code does not compile. |
8be2b38b |
198 | |
199 | Sat Feb 17 13:37:37 MET 2001 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
200 | |
25f64a11 |
201 | Version 1.0.10. |
8be2b38b |
202 | |
25f64a11 |
203 | Forgot to increase version number at previous patch (there were |
204 | two of them, which is why we jump from 1.0.8 to 1.0.10). |
8be2b38b |
205 | |
b12202d0 |
206 | Sat Feb 17 13:35:00 MET 2001 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
207 | |
25f64a11 |
208 | Version 1.0.8, binary format 2.4. |
b12202d0 |
209 | |
25f64a11 |
210 | Fixed incorrect error message. |
b12202d0 |
211 | |
25f64a11 |
212 | Now bless objects ASAP at retrieve time, which is meant to fix |
213 | two bugs: |
b12202d0 |
214 | |
25f64a11 |
215 | * Indirect references to overloaded object were not able to |
216 | restore overloading if the object was not blessed yet, |
217 | which was possible since blessing occurred only after the |
218 | recursive retrieval. |
b12202d0 |
219 | |
25f64a11 |
220 | * Storable hooks asking for serialization of blessed ref could |
221 | get un-blessed refs at retrieval time, for the very same |
222 | reason. |
b12202d0 |
223 | |
25f64a11 |
224 | The fix implemented here was suggested by Nick Ing-Simmons. |
b12202d0 |
225 | |
25f64a11 |
226 | Added support for blessed ref to tied structures. This is the |
227 | cause for the binary format change. |
b12202d0 |
228 | |
25f64a11 |
229 | Added EBCDIC version of the compatibility test with 0.6.11, |
230 | from Peter Prymmer |
b12202d0 |
231 | |
25f64a11 |
232 | Added tests for the new features, and to make sure the bugs they |
233 | are meant to fix are indeed fixed. |
b12202d0 |
234 | |
862382c7 |
235 | Wed Jan 3 10:43:18 MET 2001 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
236 | |
25f64a11 |
237 | Removed spurious 'clean' entry in Makefile.PL. |
862382c7 |
238 | |
25f64a11 |
239 | Added CAN_FLOCK to determine whether we can flock() or not, |
240 | by inspecting Perl's configuration parameters, as determined |
241 | by Configure. |
862382c7 |
242 | |
25f64a11 |
243 | Trace offending package when overloading cannot be restored |
244 | on a scalar. |
862382c7 |
245 | |
25f64a11 |
246 | Made context cleanup safer to avoid dup freeing, mostly in the |
247 | presence of repeated exceptions during store/retrieve (which can |
248 | cause memory leaks anyway, so it's just additional safety, not a |
249 | definite fix). |
862382c7 |
250 | |
90826881 |
251 | Sun Nov 5 18:23:48 MET 2000 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
252 | |
25f64a11 |
253 | Version 1.0.6. |
90826881 |
254 | |
25f64a11 |
255 | Fixed severe "object lost" bug for STORABLE_freeze returns, |
256 | when refs to lexicals, taken within the hook, were to be |
257 | serialized by Storable. Enhanced the t/recurse.t test to |
258 | stress hook a little more with refs to lexicals. |
90826881 |
259 | |
212e9bde |
260 | Thu Oct 26 19:14:38 MEST 2000 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
261 | |
25f64a11 |
262 | Version 1.0.5. |
212e9bde |
263 | |
25f64a11 |
264 | Documented that store() and retrieve() can return undef. |
265 | That is, the error reporting is not always made via exceptions, |
266 | as the paragraph on error reporting was implying. |
212e9bde |
267 | |
25f64a11 |
268 | Auto requires module of blessed ref when STORABLE_thaw misses. |
269 | When the Storable engine looks for the STORABLE_thaw hook and |
270 | does not find it, it now tries to require the package into which |
271 | the blessed reference is. |
212e9bde |
272 | |
25f64a11 |
273 | Just check $^O, in t/lock.t: there's no need to pull the whole |
274 | Config module for that. |
212e9bde |
275 | |
8be2b38b |
276 | Mon Oct 23 20:03:49 MEST 2000 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
277 | |
25f64a11 |
278 | Version 1.0.4. |
8be2b38b |
279 | |
25f64a11 |
280 | Protected calls to flock() for DOS platform: apparently, the |
281 | flock/fcnlt emulation is reported to be broken on that |
282 | platform. |
8be2b38b |
283 | |
25f64a11 |
284 | Added logcarp emulation if they don't have Log::Agent, since |
285 | we now use it to carp when lock_store/lock_retrieve is used |
286 | on DOS. |
8be2b38b |
287 | |
dd19458b |
288 | Fri Sep 29 21:52:29 MEST 2000 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
289 | |
25f64a11 |
290 | Version 1.0.3. |
dd19458b |
291 | |
25f64a11 |
292 | Avoid using "tainted" and "dirty" since Perl remaps them via |
293 | cpp (i.e. #define). This is deeply harmful when threading |
294 | is enabled. This concerned both the context structure and |
295 | local variable and argument names. Brrr..., scary! |
dd19458b |
296 | |
297 | Thu Sep 28 23:46:39 MEST 2000 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
298 | |
25f64a11 |
299 | Version 1.0.2. |
dd19458b |
300 | |
25f64a11 |
301 | Fixed spelling in README. |
dd19458b |
302 | |
25f64a11 |
303 | Added lock_store, lock_nstore, and lock_retrieve (advisory locking) |
304 | after a proposal from Erik Haugan <erik@solbors.no>. |
dd19458b |
305 | |
25f64a11 |
306 | Perls before 5.004_04 lack newSVpvn, added remapping in XS. |
dd19458b |
307 | |
25f64a11 |
308 | Fixed stupid typo in the t/utf8.t test. |
dd19458b |
309 | |
310 | Sun Sep 17 18:51:10 MEST 2000 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
311 | |
25f64a11 |
312 | Version 1.0.1, binary format 2.3. |
dd19458b |
313 | |
25f64a11 |
314 | Documented that doubles are stored stringified by nstore(). |
dd19458b |
315 | |
25f64a11 |
316 | Added Salvador Ortiz Garcia in CREDITS section, He identified |
317 | a bug in the store hooks and proposed the right fix: the class |
318 | id was allocated too soon. His bug case was also added to |
319 | the regression test suite. |
dd19458b |
320 | |
25f64a11 |
321 | Now only taint retrieved data when source was tainted. A bug |
322 | discovered by Marc Lehmann. |
dd19458b |
323 | |
25f64a11 |
324 | Added support for UTF-8 strings, a contribution of Marc Lehmann. |
325 | This is normally only activated in post-5.6 perls. |
dd19458b |
326 | |
9e21b3d0 |
327 | Thu Aug 31 23:06:06 MEST 2000 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
328 | |
25f64a11 |
329 | First official release Storable 1.0, for inclusion in perl 5.7.0. |
330 | The license scheme is now compatible with Perl's. |
9e21b3d0 |
331 | |
f0ffaed8 |
332 | Thu Aug 24 01:02:02 MEST 2000 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
333 | |
25f64a11 |
334 | ANSI-fied most of the code, preparing for Perl core integration. |
335 | The next version of Storable will be 0.8, and will be integrated |
336 | into the Perl core (development branch). |
f0ffaed8 |
337 | |
25f64a11 |
338 | Dispatch tables were moved upfront to relieve some compilers, |
339 | especially on AIX and Windows platforms. |
f0ffaed8 |
340 | |
25f64a11 |
341 | Merged 64-bit fixes from perl5-porters. |
f0ffaed8 |
342 | |
7a6a85bf |
343 | Mon Aug 14 09:22:04 MEST 2000 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
344 | |
25f64a11 |
345 | Added a refcnt dec in retrieve_tied_key(): sv_magic() increases |
346 | the refcnt on the mg_ptr as well. |
7a6a85bf |
347 | |
25f64a11 |
348 | Removed spurious dependency to Devel::Peek, which was used for |
349 | testing only in t/tied_items.t. Thanks to Conrad Heiney |
350 | <conrad@fringehead.org> for spotting it first. |
7a6a85bf |
351 | |
352 | Sun Aug 13 22:12:59 MEST 2000 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
353 | |
25f64a11 |
354 | Marc Lehmann kindly contributed code to add overloading support |
355 | and to handle references to tied variables. |
7a6a85bf |
356 | |
25f64a11 |
357 | Rewrote leading blurb about compatibility to make it clearer what |
358 | "backward compatibility" is about: when I say 0.7 is backward |
359 | compatible with 0.6, it means the revision 0.7 can read files |
360 | produced by 0.6. |
7a6a85bf |
361 | |
25f64a11 |
362 | Mention new Clone(3) extension in SEE ALSO. |
7a6a85bf |
363 | |
25f64a11 |
364 | Was wrongly optimizing for "undef" values in hashes by not |
365 | fully recursing: as a result, tied "undef" values were incorrectly |
366 | serialized. |
7a6a85bf |
367 | |
368 | Sun Jul 30 12:59:17 MEST 2000 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
369 | |
25f64a11 |
370 | First revision of Storable 0.7. |
7a6a85bf |
371 | |
25f64a11 |
372 | The serializing format is new, known as version 2.0. It is fully |
373 | backward compatible with 0.6. Earlier formats are deprecated and |
374 | have not even been tested: next version will drop pre-0.6 format. |
7a6a85bf |
375 | |
25f64a11 |
376 | Changes since 0.6@11: |
7a6a85bf |
377 | |
25f64a11 |
378 | - Moved interface to the "beta" status. Some tiny parts are still |
379 | subject to change, but nothing important enough to warrant an "alpha" |
380 | status any longer. |
7a6a85bf |
381 | |
25f64a11 |
382 | - Slightly reduced the size of the Storable image by factorizing |
383 | object class names and removing final object storage notification due |
384 | to a redesign of the blessed object storing. |
7a6a85bf |
385 | |
25f64a11 |
386 | - Classes can now redefine how they wish their instances to be serialized |
387 | and/or deep cloned. Serializing hooks are written in Perl code. |
7a6a85bf |
388 | |
25f64a11 |
389 | - The engine is now fully re-entrant. |
7a6a85bf |
390 | |
391 | Sun Apr 2 23:47:50 MEST 2000 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
392 | |
25f64a11 |
393 | Added provision to detect more recent binary formats, since |
394 | the new upcoming Storable-0.7 will use a different format. |
395 | In order to prevent attempting the de-serialization of newer |
396 | formats by older versions, I'm adding this now to the 0.6 series. |
7a6a85bf |
397 | |
25f64a11 |
398 | I'm expecting this revision to be the last of the 0.6 series. |
399 | Unless it does not work with perl 5.6, which I don't use yet, |
400 | and therefore against which I cannot test. |
7a6a85bf |
401 | |
402 | Wed Mar 29 19:55:21 MEST 2000 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
403 | |
25f64a11 |
404 | Added note about format incompatibilities with old versions |
405 | (i.e. pre 0.5@9 formats, which cannot be understood as there |
406 | was no versionning information in the file by then). |
7a6a85bf |
407 | |
25f64a11 |
408 | Protect all $@ variables when eval {} used, to avoid corrupting |
409 | it when store/retrieve is called within an exception handler. |
7a6a85bf |
410 | |
25f64a11 |
411 | Mistakenly included "patchlevel.h" instead of <patchlevel.h>, |
412 | preventing Perl's patchlevel from being included, which is |
413 | needed starting from 5.6. |
7a6a85bf |
414 | |
415 | Tue May 12 09:15:15 METDST 1998 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
416 | |
25f64a11 |
417 | Fixed shared "undef" bug in hashes, which did not remain shared |
418 | through store/retrieve. |
7a6a85bf |
419 | |
420 | Thu Feb 10 19:48:16 MET 2000 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
421 | |
25f64a11 |
422 | added last_op_in_netorder() predicate |
423 | documented last_op_in_netorder() |
424 | added tests for the new last_op_in_netorder() predicate |
7a6a85bf |
425 | |
426 | Wed Oct 20 19:07:36 MEST 1999 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
427 | |
25f64a11 |
428 | Forgot to update VERSION |
7a6a85bf |
429 | |
430 | Tue Oct 19 21:25:02 MEST 1999 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
431 | |
25f64a11 |
432 | Added mention of japanese translation for the manual page. |
7a6a85bf |
433 | |
25f64a11 |
434 | Fixed typo in macro that made threaded code not compilable, |
435 | especially on Win32 platforms. |
7a6a85bf |
436 | |
25f64a11 |
437 | Changed detection of older perls (pre-5.005) by testing PATCHLEVEL |
438 | directly instead of relying on internal symbols. |
7a6a85bf |
439 | |
440 | Tue Sep 14 22:13:28 MEST 1999 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
441 | |
25f64a11 |
442 | Integrated "thread-safe" patch from Murray Nesbitt. |
443 | Note that this may not be very efficient for threaded code, |
444 | see comment in the code. |
7a6a85bf |
445 | |
25f64a11 |
446 | Try to avoid compilation warning on 64-bit CPUs. Can't test it, |
447 | since I don't have access to such machines. |
7a6a85bf |
448 | |
449 | Mon Jul 12 14:37:19 METDST 1999 Raphael Manfredi <Raphael_Manfredi@pobox.com> |
450 | |
25f64a11 |
451 | changed my e-mail to pobox. |
7a6a85bf |
452 | |
25f64a11 |
453 | mentionned it is not thread-safe. |
7a6a85bf |
454 | |
25f64a11 |
455 | updated version number. |
7a6a85bf |
456 | |
25f64a11 |
457 | uses new internal PL_* naming convention. |
7a6a85bf |
458 | |
459 | Fri Jul 3 13:38:16 METDST 1998 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
460 | |
25f64a11 |
461 | Updated benchmark figures due to recent optimizations done in |
462 | store(): tagnums are now stored as-is in the hash table, so |
463 | no surrounding SV is created. And the "shared keys" mode for |
464 | hash table was turned off. |
7a6a85bf |
465 | |
25f64a11 |
466 | Fixed backward compatibility (wrt 0.5@9) for retrieval of |
467 | blessed refs. That old version did something wrong, but the |
468 | bugfix prevented correct retrieval of the old format. |
7a6a85bf |
469 | |
470 | Mon Jun 22 11:00:48 METDST 1998 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
471 | |
25f64a11 |
472 | Changed benchmark figures. |
7a6a85bf |
473 | |
25f64a11 |
474 | Adjust refcnt of tied objects after calling sv_magic() to avoid |
475 | memory leaks. Contributed by Jeff Gresham. |
7a6a85bf |
476 | |
477 | Fri Jun 12 11:50:04 METDST 1998 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
478 | |
25f64a11 |
479 | Added workaround for persistent LVALUE-ness in perl5.004. All |
480 | scalars tagged as being an lvalue are handled as if they were |
481 | not an lvalue at all. Added test for that LVALUE bug workaround. |
7a6a85bf |
482 | |
25f64a11 |
483 | Now handles Perl immortal scalars explicitely, by storing &sv_yes |
484 | as such, explicitely. |
7a6a85bf |
485 | |
25f64a11 |
486 | Retrieval of non-immortal undef cannot be shared. Previous |
487 | version was over-optimizing by not creating a separate SV for |
488 | all undefined scalars seen. |
7a6a85bf |
489 | |
490 | Thu Jun 4 17:21:51 METDST 1998 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
491 | |
25f64a11 |
492 | Baseline for Storable-0.6@0. |
7a6a85bf |
493 | |
25f64a11 |
494 | This version introduces a binary incompatibility in the generated |
495 | binary image, which is more compact than older ones by approximatively |
496 | 15%, depending on the exact degree of sharing in your structures. |
7a6a85bf |
497 | |
25f64a11 |
498 | The good news is that your older images can still be retrieved with |
499 | this version, i.e. backward compatibility is preserved. This version |
500 | of Storable can only generate new binaries however. |
7a6a85bf |
501 | |
25f64a11 |
502 | Another good news is that the retrieval of data structure is |
503 | significantly quicker than before, because a Perl array is used |
504 | instead of a hash table to keep track of retrieved objects, and |
505 | also because the image being smaller, less I/O function calls are |
506 | made. |
7a6a85bf |
507 | |
508 | Tue May 12 09:15:15 METDST 1998 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
509 | |
25f64a11 |
510 | Version number now got from Storable.pm directly. |
7a6a85bf |
511 | |
25f64a11 |
512 | Fixed overzealous sv_type() optimization, which would make |
513 | Storable fail when faced with an "upgraded" SV to the PVIV |
514 | or PVNV kind containing a reference. |
7a6a85bf |
515 | |
516 | Thu Apr 30 15:11:30 METDST 1998 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
517 | |
25f64a11 |
518 | Extended the SYNOPSIS section to give quick overview of the |
519 | routines and their signature. |
7a6a85bf |
520 | |
25f64a11 |
521 | Optimized sv_type() to avoid flags checking when not needed, i.e. |
522 | when their type makes it impossible for them to be refs or tied. |
523 | This slightly increases throughput by a few percents when refs |
524 | and tied variables are marginal occurrences in your data. |
7a6a85bf |
525 | |
25f64a11 |
526 | Stubs for XS now use OutputStream and InputStream file types to |
527 | make it work when the given file is actually a socket. Perl |
528 | makes a distinction for sockets in its internal I/O structures |
529 | by having both a read and a write structure, whereas plain files |
530 | share the same one. |
7a6a85bf |
531 | |
532 | Tue Jun 3 09:41:33 METDST 1997 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
533 | |
25f64a11 |
534 | Thanks to a contribution from Benjamin A. Holzman, Storable is now |
535 | able to correctly serialize tied SVs, i.e. tied arrays, hashes |
536 | and scalars. |
7a6a85bf |
537 | |
538 | Thu Apr 9 18:07:51 METDST 1998 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
539 | |
25f64a11 |
540 | I said SvPOK() had changed to SvPOKp(), but that was a lie... |
7a6a85bf |
541 | |
542 | Wed Apr 8 13:14:29 METDST 1998 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
543 | |
25f64a11 |
544 | Wrote sizeof(SV *) instead of sizeof(I32) when portable, which |
545 | in effect mangled the object tags and prevented portability |
546 | accross 32/64 bit architectures! |
7a6a85bf |
547 | |
548 | Wed Mar 25 14:57:02 MET 1998 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
549 | |
25f64a11 |
550 | Added code example for store_fd() and retrieve_fd() in the |
551 | man page, to emphasize that file descriptors must be passed as |
552 | globs, not as plain strings. |
7a6a85bf |
553 | |
25f64a11 |
554 | Cannot use SV addresses as tag when using nstore() on LP64. This |
555 | was the cause of problems when creating a storable image on an |
556 | LP64 machine and retrieving it on an ILP32 system, which is |
557 | exactly what nstore() is meant for... |
7a6a85bf |
558 | |
25f64a11 |
559 | However, we continue to use SV addresses as tags for plain store(), |
560 | because benchamarking shows that it saves up to 8% of the store |
561 | time, and store() is meant to be fast at the expense of lack |
562 | of portability. |
7a6a85bf |
563 | |
25f64a11 |
564 | This means there will be approximately an 8% degradation of |
565 | performance for nstore(), but it's now working as expected. |
566 | That cost may vary on your machine of course, since it is |
567 | solely caused by the memory allocation overhead used to create |
568 | unique SV tags for each distinct stored SV. |
7a6a85bf |
569 | |
570 | Tue Jan 20 09:21:53 MET 1998 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
571 | |
25f64a11 |
572 | Don't use any '_' in version number. |
7a6a85bf |
573 | |
574 | Tue Jan 13 17:51:50 MET 1998 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
575 | |
25f64a11 |
576 | Updated version number. |
7a6a85bf |
577 | |
25f64a11 |
578 | added binmode() calls for systems where it matters. |
7a6a85bf |
579 | |
25f64a11 |
580 | Be sure to pass globs, not plain file strings, to C routines, |
581 | so that Storable can be used under the Perl debugger. |
7a6a85bf |
582 | |
583 | Wed Nov 5 10:53:22 MET 1997 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
584 | |
25f64a11 |
585 | Fix memory leaks on seen hash table and returned SV refs. |
7a6a85bf |
586 | |
25f64a11 |
587 | Storable did not work properly when tainting enabled. |
7a6a85bf |
588 | |
25f64a11 |
589 | Fixed "Allocation too large" messages in freeze/thaw and added. |
590 | proper regression test in t/freeze.t. |
7a6a85bf |
591 | |
592 | Tue Jun 3 09:41:33 METDST 1997 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
593 | |
25f64a11 |
594 | Updated version number |
7a6a85bf |
595 | |
25f64a11 |
596 | Added freeze/thaw interface and dclone. |
7a6a85bf |
597 | |
598 | Fri May 16 10:45:47 METDST 1997 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
599 | |
25f64a11 |
600 | Forgot that AutoLoader does not export its own AUTOLOAD. |
601 | I could use |
7a6a85bf |
602 | |
25f64a11 |
603 | use AutoLoader 'AUTOLOAD'; |
604 | |
605 | but that would not be backward compatible. So the export is |
606 | done by hand... |
7a6a85bf |
607 | |
608 | Tue Mar 25 11:21:32 MET 1997 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
609 | |
25f64a11 |
610 | Empty scalar strings are now "defined" at retrieval time. |
7a6a85bf |
611 | |
25f64a11 |
612 | New test to ensure an empty string is defined when retrieved. |
7a6a85bf |
613 | |
614 | Thu Feb 27 16:32:44 MET 1997 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
615 | |
25f64a11 |
616 | Updated version number |
7a6a85bf |
617 | |
25f64a11 |
618 | Declare VERSION as being used |
7a6a85bf |
619 | |
25f64a11 |
620 | Fixed a typo in the PerlIO_putc remapping. |
621 | PerlIO_read and perlIO_write inverted size/nb_items. |
622 | (only relevant for pre-perl5.004 versions) |
7a6a85bf |
623 | |
624 | Thu Feb 27 15:58:31 MET 1997 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
625 | |
25f64a11 |
626 | Updated version number |
7a6a85bf |
627 | |
25f64a11 |
628 | Added VERSION identification |
7a6a85bf |
629 | |
25f64a11 |
630 | Allow build with perl5.003, which is ante perlIO time |
7a6a85bf |
631 | |
632 | Mon Jan 13 17:53:18 MET 1997 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
633 | |
25f64a11 |
634 | Random code fixes. |
7a6a85bf |
635 | |
636 | Wed Jan 22 15:19:56 MET 1997 Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com> |
637 | |
25f64a11 |
638 | Updated version number in Makefile.PL. |
7a6a85bf |
639 | |
25f64a11 |
640 | Added "thanks to" section to README. |
7a6a85bf |
641 | |
25f64a11 |
642 | Documented new forgive_me variable. |
7a6a85bf |
643 | |
25f64a11 |
644 | Made 64-bit clean. |
7a6a85bf |
645 | |
25f64a11 |
646 | Added forgive_me support to allow store() of data structures |
647 | containing non-storable items like CODE refs. |