Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Android EPUB 로딩 개선

RIDI
August 03, 2018

Android EPUB 로딩 개선

RIDI

August 03, 2018
Tweet

More Decks by RIDI

Other Decks in Technology

Transcript

  1. ࢲ੼ীࢲ ଼ਸ ҳݒ জীࢲ ׮਍۽٘ ੍ח׮ EPUBী Ѧܽ DRMਸ ೧ઁೞҊ


    ਬബೞ૑ ঋ਷ ౵ੌ੉ ੓ա ഛੋೞҊ 
 ঑୷ ಽҊ
 ஶబஎ ଺Ҋ
 ׮द DRM ੸ਊೞҊ ਗࠄ ૑਋Ҋ 
 …
  2. =

  3. 2. ੐੄੄ ੉ܴਸ о૓ ࠙ೡ ঑୷౵ੌਸ ࢎਊೞ੗ Zip Headerܳ ా೧

    ࣽࢲ ਬ୶ оמ 1. DRM ೧ઁೠ EPUB ౵ੌਸ ੷੢ೞ૑ ঋҊ ߄۽ ঐഐചೞ੗
  4. 3. Zip ౵ੌ੉ ইצ Ӓր ౵ੌਸ ࢎਊೞ੗ ౵ੌ ࢤࢿदрਸ ా೧

    ࣽࢲ ਬ୶ оמ 2. ੐੄੄ ੉ܴਸ о૓ ࠙ೡ ঑୷౵ੌਸ ࢎਊೞ੗ 1. DRM ೧ઁೠ EPUB ౵ੌਸ ੷੢ೞ૑ ঋҊ ߄۽ ঐഐചೞ੗
  5. 4. Random Access Fileਸ ࢎਊೞ੗ ࢿҕ 3. Zip ౵ੌ੉ ইצ

    Ӓր ౵ੌਸ ࢎਊೞ੗ 2. ੐੄੄ ੉ܴਸ о૓ ࠙ೡ ঑୷౵ੌਸ ࢎਊೞ੗ 1. DRM ೧ઁೠ EPUB ౵ੌਸ ੷੢ೞ૑ ঋҊ ߄۽ ঐഐചೞ੗
  6. opf੄ ݾ۾ী ੓ח ౵ੌٜਸ ঐഐച ঑୷ਸ ݢ੷ ׮ ಽҊ ঐഐച

    ೮ӝ ٸޙী opf ࢎਊ оמ ੿ӏधਵ۽ ഛ੢੗ܳ ୓௼೧ࢲ ঐഐച
 e.g. *.html, *.xhtml
  7. ঑୷ਸ ݢ੷ ׮ ಽҊ ঐഐച ೮ӝ ٸޙী opf ࢎਊ оמ

    
 -> ೙ਃೠ ౵ੌਸ ଺ই ݢ੷ ঑୷ਸ ಽ੗ InputStream ZipArchiveInputStream ZipArchiveEntry
  8. ঑୷ ಽ ٸ݃׮ opfীࢲ ୶୹ೠ ݾ۾җ ࠺Ү ݾ۾੄ ݽٚ ౵ੌਸ

    ঑୷ ಽ঻ਵݶ աݠ૑ח ߄۽ ૓೯ೞ੗ -> ࠺ ஶబஎ ౵ੌ੉ ݆਺ EPUB੄ ਊ۝੉ ఀ
  9. PAPER PRO ୭ୡ ۽٬दр 0 150 300 450 600 15MB

    50MB 200MB 500MB ߸҃ ੹ ߸҃ റ दр (ୡ) 60%
  10. Q&A