Giter VIP home page Giter VIP logo

Comments (4)

jcupitt avatar jcupitt commented on July 19, 2024

Experimental branch here:

https://github.com/jcupitt/pyvips/tree/api

Seems to work, though it still needs some polish. It can work in ABI and API modes, but I'm not sure it'll fall back to ABI if API fails. It does start much faster.

There are some problems with g_free as well: in API mode, you can't use lib functions directly as callback arguments, so it's forced to add a py layer to blob free. This then causes a segv on exit as libvips tries to call back into py after py has gone.

from pyvips.

jcupitt avatar jcupitt commented on July 19, 2024

It knocks 20% off the test-suite run time, though it'll be less in regular code.

from pyvips.

jcupitt avatar jcupitt commented on July 19, 2024

g_free() problems fixed with libvips 8.6.

It's not falling back correctly on install:

$ rm ~/vips/lib/pkgconfig/vips
vipsCC.pc    vips-cpp.pc  vips.pc      
$ rm ~/vips/lib/pkgconfig/vips* 
$ pkg-config vips --modversion
Package vips was not found in the pkg-config search path.
Perhaps you should add the directory containing `vips.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vips' found
$ pip install --user -e .
Obtaining file:///home/john/GIT/pyvips
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/john/GIT/pyvips/setup.py", line 86, in <module>

from pyvips.

jcupitt avatar jcupitt commented on July 19, 2024

Merged to master and released in 2.1

from pyvips.

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.