Code Monkey home page Code Monkey logo

Comments (1)

jerry92k avatar jerry92k commented on May 24, 2024

엑셀 파싱 로직 효율화

변경사항
엑셀 파싱에 사용하는 XSSFWorkbook 구현체 생성시 InputStream 대신 File 객체 전달

관련 라이브러리 : apache.poi

개선 포인트
OPCPackage 객체를 생성할 때 차이가 발생한다.

  • InputStream을 이용할 경우, 메모리에 전체 스트림을 올려서 읽은 후 zipfile로 만든 후 해당 zipfile을 기반으로 OPCPackage를 생성한다.
  • File의 경우 처음 몇 바이트만 읽고 체크해서 파일이 정상인지 체크하고, zipfile 객체 생성시 file 객체 참조를 전달한다.

관련 정리글 : XSSFWorkbook 객체 생성 시 InputStream과 File 전달 차이

from real-estate-invest.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.