Coder Social home page Coder Social logo

django-stalefields's People

Contributors

adamd avatar bryanhelmig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-stalefields's Issues

Try to avoid use of `copy.deepcopy()` for JSON fields

stale_copy() uses copy.deepcopy() for non-primitive objects, such as those returned by django-jsonfield. This is quite slow, and could be sped up, as explored by e.g. http://technology.jana.com/2014/12/29/json-deep-copy/.

I didn't want to put together a pull request until the maintainers were happy with a proposal for speeding this up. So, would you be interested in a PR implementing the approach in the blog article above? (e.g. try round-tripping with ujson, then json, then copy.deepcopy()?

Another alternative would be to special-case JSONField fields to use a [u]json round-trip, and leave everything else to use copy.deepcopy(). I worry that this would be a bit too ugly though.

New Release?

Hey guys,

The version published on PyPi (0.85) throws an Exception when installing the requirements in a new environment. I believe that 42d3bc7#diff-99ea59348ff4d82b0c18fa667516bc40L21 (just after 0.85) fixes that. Can you do a new release for this?

Thanks for your time and for a great package!

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.