Code Monkey home page Code Monkey logo

Comments (5)

jezdez avatar jezdez commented on July 30, 2024

Hmm, interesting, I'm open for suggestions, even if this is an edge case I wouldn't want to increase those 4 seconds.

from django-compressor.

jezdez avatar jezdez commented on July 30, 2024

Having thought about this a bit, I think it'd be best to just write a shell script / fabfile that calls the compress management command with the appropriate --settings value in a loop over all your settings.

from django-compressor.

jdunck avatar jdunck commented on July 30, 2024

Well, the issue is the overhead of starting 100s of processes of a
large django codebase; that is largely CPU-bound, so parallelizing
doesn't help much.

On Sun, Apr 10, 2011 at 12:01 PM, jezdez
[email protected]
wrote:

Having thought about this a bit, I think it'd be best to just write a shell script / fabfile that calls the compress management command with the appropriate --settings value in a loop over all your settings.

Reply to this email directly or view it on GitHub:
#15 (comment)

from django-compressor.

jezdez avatar jezdez commented on July 30, 2024

Hm, maby using django.core.management.setup_environ instead for each of the settings? What causes the actual slow down?

from django-compressor.

jdunck avatar jdunck commented on July 30, 2024

On Sun, Apr 10, 2011 at 2:16 PM, jezdez
[email protected]
wrote:

Hm, maby using django.core.management.setup_environ instead for each of the settings? What causes the actual slow down?

I agree this is an edge case... The codebase in question has 200K LOC
of python and uses several apps which have an autodiscover mechanism
so that accessing much of Django causes it all to be imported. On top
of that, there are some module-level initializations which are
relatively costly.

I don't think I fully understand what setup_environ does -- that is,
I'm not sure it's safe to run more than once in a process?

from django-compressor.

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.