Coder Social home page Coder Social logo

Cache when using streams about imagemin HOT 5 CLOSED

kevva avatar kevva commented on May 10, 2024
Cache when using streams

from imagemin.

Comments (5)

sindresorhus avatar sindresorhus commented on May 10, 2024

We do have the source and dest buffer though. So could compare that. I'm just not sure caching should be a part of image-min.

from imagemin.

kevva avatar kevva commented on May 10, 2024

Yeah, but how do we know where to look? And we'd still have to optimize the image before comparing it to the dest buffer which kinda makes the caching redundant.

from imagemin.

sindresorhus avatar sindresorhus commented on May 10, 2024

@kevva disk, sad lol... i really wish ramdisks were a standard OS feature, would make this so much easier.

from imagemin.

kevva avatar kevva commented on May 10, 2024

Closing this as caching probably should be done somewhere else, preferably in grunt-contrib-imagemin or gulp-imagemin.

from imagemin.

sindresorhus avatar sindresorhus commented on May 10, 2024

I agree, but keeping it open here so I don't forget. We should also have an example on how to cache in the readme when we figure it out.

from imagemin.

Related Issues (20)

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.