Coder Social home page Coder Social logo

persisting v8 object with apc_store about v8js HOT 6 CLOSED

phpv8 avatar phpv8 commented on August 21, 2024
persisting v8 object with apc_store

from v8js.

Comments (6)

yllierop avatar yllierop commented on August 21, 2024

Hello,

Yes that might be possible. I need to spend a little time thinking about the best way.

I'll respond in the next couple of days.

— Patrick

from v8js.

saveriocastellano avatar saveriocastellano commented on August 21, 2024

hello! Any news on this? thanks

from v8js.

yllierop avatar yllierop commented on August 21, 2024

@saveriocastellano — I'm still working on it. I appreciate your patience.

— Patrick

from v8js.

saveriocastellano avatar saveriocastellano commented on August 21, 2024

thanks a lot!

from v8js.

auroraeosrose avatar auroraeosrose commented on August 21, 2024

So - by default apc_store serializes objects before they are stored -
For PHP 5.5 the apcu extension (replaces apc after 5.5) has some more hooks though, you may be able to have
a suspend function which will do this for you when apcu is enabled

The other trick might be to register your own apc_serializer that falls back for other items and basically doesn't serialize but just stores the pointer...

http://lxr.php.net/xref/PECL/APC/php_apc.c#574 - is the code for the store

from v8js.

yllierop avatar yllierop commented on August 21, 2024

@auroraeosrose — thanks for the references. I'm going to close this issue for now.
@saveriocastellano — I'll poke around a little bit more on this in the future but for now it doesn't seem too possible. :-(

from v8js.

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.