Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7793561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:31:40+00:00 2026-06-01T22:31:40+00:00

python will store all strings in athene_pool and will never release them,so bigtext prcocessing

  • 0

python will store all strings in athene_pool and will never release them,so bigtext prcocessing bothered me recently.
I save article contents to redis,and fetch them from redisclient,and send them to http response.while serialization may will cause too much memory,is there any good idea to resolve things like this?
I wonder if django generated too many responses,how it releases them to keep memory low?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T22:31:42+00:00Added an answer on June 1, 2026 at 10:31 pm

    Python does not pool all strings, see Are strings pooled in Python.

    For example, this 10K string is not pooled:

    >>> a = '5' * 10000
    >>> b = '5' * 10000
    >>> a is b
    False
    

    But a short 5 character string is pooled:

    >>> a = '5' * 5
    >>> b = '5' * 5
    >>> a is b
    True
    

    Ergo: you don’t need to worry about long strings being kept in memory longer than necessary.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing some code (just for fun so far) in Python that will store
I want a website where-in it will store all my (quick)scripts online. Sometimes I
In Python, I instantiate a class twice and store them into 2 different variables.
Most python frameworks will have a development webserver of some kind that will have
The typical Python threadpool will have a structure like this one: def run(self): while
I am writing a program in Python that will act as a server and
I'm writing a utility in Python that will attach changed files in Subversion to
Is there a library for Python that will allow me to parse c++ code?
Is there any api/lib for python that will get me the synonyms of a
I am writing a console application in python that will consist of a handful

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.