optimization: read content of the file directly to std::string to avoid creating...
authorsubhransu mohanty <sub.mohanty@samsung.com>
Thu, 1 Aug 2019 05:55:09 +0000 (14:55 +0900)
committerHermet Park <hermetpark@gmail.com>
Mon, 12 Aug 2019 08:30:43 +0000 (17:30 +0900)
commitf054d7ec0ba903efa066b59098a63db45d0f722b
tree7d4521f04bb59dd26c068fd47221486346560644
parentc4dc9a64ecb3b8287be7d487d1d910d96c454ba4
optimization: read content of the file directly to std::string to avoid creating temporary memory.

As json format is one big string we can directly read the content of file with one call to getline()
without going through generic interface to first read into  stringstream and then create again a temorary
string from the stringstream buffer.
src/lottie/lottieloader.cpp