Bug 52084 - [PATCH] byte level verifier of SST serialization in various methods
Summary: [PATCH] byte level verifier of SST serialization in various methods
Status: NEEDINFO
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.7-FINAL
Hardware: PC All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords: PatchAvailable
Depends on:
Blocks: 52086
  Show dependency tree
 
Reported: 2011-10-25 13:55 UTC by Shoji KUZUKAMI
Modified: 2015-05-31 22:11 UTC (History)
0 users



Attachments
patch file (7.54 KB, application/octet-stream)
2011-10-25 13:55 UTC, Shoji KUZUKAMI
Details
verification of performance (21.58 KB, application/pdf)
2012-02-22 15:46 UTC, Shoji KUZUKAMI
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shoji KUZUKAMI 2011-10-25 13:55:33 UTC
Created attachment 27843 [details]
patch file

This bug report is an extracted abstract from the mail 'SSTRecord.serialize() performance improvement patch for huge hssf output' in the 'dev@poi.apache.org' ML.
Please use the 'patch' program to patch the files, such as 'patch -p 0
< HOGE.patch'.
I tried to use eclipse to patch them, but I found that any trial will fail.
---

This patch provides new two features.
The first one is a byte level test method named
'testSSTRecord_DigestCheck()' to investigate a hack correctness.
Another one is an enumeration class named 'SerializeFunction' to
dispatch various serialization methods of SST record easily.

Both of the features are introduced into the
org.apache.poi.hssf.record.TestSSTRecord.java.
And some trivial accessibility changes of other methods are also
contained in this patch.

The enum 'SerializeFunction' in default consists of two instances to dispatch
the memory output method 'Memory' and the raw-file based output method
'StreamFile'.

The test method of 'testSSTRecord_DigestCheck()' proves that
there are no differences in the output bytes between the 'Memory'
method and 'StreamFile' method
and their results are identical to the original results
in the message digest of byte.

If you want to check by yourself, please run the whole set of unit
tests (ant test-all?) in the poi project
in which the patch automatically integrates the
'testSSTRecord_DigestCheck()' method.
Comment 1 Yegor Kozlov 2012-02-22 12:18:10 UTC
I'm changing the status to NEEDINFO until my questions in Bug 52986 are answered.

Yegor
Comment 2 Shoji KUZUKAMI 2012-02-22 15:46:45 UTC
Created attachment 28362 [details]
verification of performance