Code Monkey home page Code Monkey logo

Comments (3)

CMCDragonkai avatar CMCDragonkai commented on July 17, 2024

I agree. I would recommend a change to JSON, to allow cross-language support for the same cache source.

OpCode is a pain with PHP "data" files.

#135

We should do some benchmarking to figure out whether OpCache or APC really saves that much time with regards to the PHP data file (Also we can't even use OpCache for the files anyway due its "caching the cache"). If not, then it's safer to avoid using PHP and use another data storage file format.

from stash.

tedivm avatar tedivm commented on July 17, 2024

I'm not going to lie, this isn't something I'm going to have a lot of time to work on. If one of you guys wanted to make the pull request I would be happy to look at it, and based off of what you've said so far I won't have any issues approving it.

from stash.

tedivm avatar tedivm commented on July 17, 2024

So I've got a pull request together that somewhat solves this. I tried going with JSON but was receiving way too many errors with data integrity. Admittedly this was mostly with larger numbers that people are unlikely to encounter in most cases, but for now I'm settling on the php serialization functions as alternative to php source files.

This update also creates a new interface and the ability to inject Encoder classes into the FileSystem driver in case people want to do custom back ends, which should handle your suggested use cases pretty well @gggeek.

from stash.

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.