[ 
https://issues.apache.org/jira/browse/TIKA-5071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18148447#comment-18148447
 ] 

ASF GitHub Bot commented on TIKA-5071:
--------------------------------------

DylanSYHoh commented on PR #3648:
URL: https://github.com/apache/tika/pull/3648#issuecomment-7054540876

   > My 🤖 finds these. Let me know what you think?
   
   Looks like the bot is right. I’ve pushed fixes for these.
   
   >   1. Quadratic join, repeated per cell. ScriptedTextCell.append joins 
same-tag runs by string concatenation.
   >      - .xls: a shared string can carry 65,535 one-character runs, and 
toScriptedText re-sorts and re-joins it for every LabelSST cell that references 
it.
   >      - .xlsx: the run count is unbounded, and the join is also redone per 
cell.
   >      - A small file can burn CPU before any output limit triggers. Fix: a 
StringBuilder per run, and merge once per shared string rather than per cell.
   
   I didn’t cache per shared string as suggested: with the linear join, 
rebuilding per cell costs the same as writing the cell out.
   
   I also dropped the RK branch, since POI converts RK records to NumberRecords 
anyway.
   Thanks for running it!




> Keep superscript/subscript as sup/sub in xls and xlsx
> -----------------------------------------------------
>
>                 Key: TIKA-5071
>                 URL: https://issues.apache.org/jira/browse/TIKA-5071
>             Project: Tika
>          Issue Type: Improvement
>            Reporter: Dylan Hoh
>            Priority: Minor
>
> TIKA-5016 added sup/sub output for docx, pptx, doc, RTF and HTML, but Excel 
> files still lose it, so "Hâ‚‚O" in a cell comes out as "H2O". The formatting is 
> available in both xls and xlsx, in the shared strings' rich-text runs and in 
> the cell font.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to