Comments (3)
Hi,
Thanks for the information, I tried your decoder, but there is a HUGE problem of performance, I tried it with this huge Gif image and ran into a stack overflow and when launching with more stack space (./gif-parser +RTS -K30000000 -RTS huge.gif
), it consumed 3.5 GB of memory while running, I had to kill it from then.
For a direct inclusion in the library, a partial rewrite to handle huge loads is needed, but don't worry, it's doable, and having a reference implementation is always good to have.
from juicy.pixels.
Yes this is mostly a problem with the lzw implementation since it uses a very inefficient Map. If you look into it, you will see why (it maps List on Int. so the key is a List which makes for very bad performance).
Also, my example main does load the same gif in memory 6 times (and i didn't test if it was garbage collected)
from juicy.pixels.
Reimplemented
from juicy.pixels.
Related Issues (20)
- Transparent gifs
- EXIF files are misidentified as TIFF instead of JPEG in metadata
- `readMetadata`, without decoding image HOT 2
- Add option to apply JPEG rotation to image
- Width and height incorrect for exif image
- Loosen bounds on bytestring HOT 1
- What does this sentence means?
- Refine(cast) DynamicImage to specific Image HOT 1
- Read EXIF data also from PNGs
- Distortion (and possibly segfault) in decoding a certain JPEG HOT 2
- Impossible - typeOfData : Exifone
- Plans to encode webp? HOT 2
- Loosen bounds on Vector
- add "instance TestEquality Keys"
- Infinite loop in palettize
- The test suite never fails
- `Metadatas` skips over entries that contain non-ascii unicode characters.
- Revise bounds on hackage to allow latest deepseq
- Missing changelog for 3.3.8
- New release? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from juicy.pixels.