dragon66 / icafe

Java library for reading, writing, converting and manipulating images and metadata
Eclipse Public License 1.0
203 stars 58 forks source link

Bitmap encode to gif time cost issue #113

Open AndyYoung1004 opened 1 year ago

AndyYoung1004 commented 1 year ago

hi this repo is excellent and solved my issue,thanks for your great job! I found that using the same bitmap list to encode to a gif,The first time and the second time cost is different When I first install my apk and encode bitmap list to gif for the first time,It cost much more time than the second time and after the first time,it turned out to cost less time when I do it again,It only happend when I first install the apk and the first time I encode,I do not know why

thanks!

dragon66 commented 1 year ago

@AndyYoung1004 Not sure about this but it could be caused by installing dependencies or something related.

I did find in many cases if you run multiple times continuously for the same code, it would faster after the first time and that might be caused by caching but from what you described, this is different from your case.

AndyYoung1004 commented 1 year ago

hi dragon66:

From your describtion I am quite sure that we met the same case,Is there any way we can solve the caching issue? or do something to workaround it

thanks!

dragon66 commented 1 year ago

@AndyYoung1004 I don't think there is a workaround for this as whatever happening here is not programmingly controlled. We don't know what is cached and when.