Coder Social home page Coder Social logo

use arrayjoin and sequential about tifig HOT 6 CLOSED

jcupitt avatar jcupitt commented on August 26, 2024
use arrayjoin and sequential

from tifig.

Comments (6)

streinhard avatar streinhard commented on August 26, 2024

Hi @jcupitt, thank you very very much for the tip! I implemented your suggestion in 59a7bd5 and it's indeed a lot faster. On my machine its saves around 160ms to build a full image. Awesome!

Switching to sequential access is also a great idea, however, by now we decode HEVC tiles directly to memory using libav. So gone are the tempfiles and unnecessary IO slow downs. ;)

Also many kudos for libvips in general! It's a very pleasant API to use and faster than lightning. Keep up the good work, it's appreciated!

from tifig.

jcupitt avatar jcupitt commented on August 26, 2024

That's great! I'm glad it helped.

Do you mean you are using new_from_memory now? If so, you're right, seq is not relevant. If you are still going via JPEG, then seq should give a speedup.

from tifig.

streinhard avatar streinhard commented on August 26, 2024

Yup, we're using new_from_memory since that's another great way to speed up things 😉 . Thanks again!

from tifig.

jcupitt avatar jcupitt commented on August 26, 2024

Off-topic: there's talk of adding HEIF to libvips as a supported format. Would you be interested in getting your loader into core libvips? It shouldn't be a large amount of work.

from tifig.

streinhard avatar streinhard commented on August 26, 2024

We like that idea ;). At the moment, we try to get tifig working for the cause we need it for: Creating thumbnails of HEIC images in a cloud solution. Once we get there, we sure would love to integrate our solution into vips. However, there's two things that probably need to be considered: Nokiatech's heif library is C++ only at the moment therefore doesn't really fit into vips ecosystem. The other point is HEVC decoding. We're relying on libav, which could be integrated, but is a huge monster itself.

from tifig.

jcupitt avatar jcupitt commented on August 26, 2024

libvips has a C API, but uses C++ internally, so I think that would be OK.

libav is indeed a huge monster :( A heifload operator would need to be optional, since it would probably be unacceptable for many users.

from tifig.

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.