diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-20 14:56:07 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-20 14:56:07 +0000 |
commit | fcec6b5c0d72288aebce9b18e25e6e92772a2eb8 (patch) | |
tree | 3ab94fdf5dc00b22847fdb80f8651504cd56227b /ChangeLog | |
parent | 5aea2ad18c622cfa5bb53f1d94e058ac7fc41ad3 (diff) |
* PStore content update perf optimization. Patch by Masaki Matsushita.
See #5248.
* lib/pstore.rb (save_data):
* Delete inadequate Marshal check.
* Deferred file truncation: when writing the new content, truncate
the saved file to the data size after writing the data, instead of
truncating whole bytes before writing data.
* Deferred MD5 calculation: when comparing MD5 hash to check the
content modification, calculate MD5 hash of new data iif the
content length is differ from the old one.
* Compare content size with String#bytesize instead of String#size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -1,3 +1,22 @@ +Tue Dec 20 23:50:12 2011 Hiroshi Nakamura <nahi@ruby-lang.org> + + * PStore content update perf optimization. Patch by Masaki Matsushita. + See #5248. + + * lib/pstore.rb (save_data): + + * Delete inadequate Marshal check. + + * Deferred file truncation: when writing the new content, truncate + the saved file to the data size after writing the data, instead of + truncating whole bytes before writing data. + + * Deferred MD5 calculation: when comparing MD5 hash to check the + content modification, calculate MD5 hash of new data iif the + content length is differ from the old one. + + * Compare content size with String#bytesize instead of String#size. + Tue Dec 20 21:00:30 2011 Tadayoshi Funaba <tadf@dotrb.org> * ext/date/date_core.c: uses to_integer instead. |