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

  • SEARCH
  • Home
  • 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 8259261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:49:04+00:00 2026-06-08T02:49:04+00:00

Keeping waste file or functions in code increases memory consumption?. Will it impact on

  • 0

Keeping waste file or functions in code increases memory consumption?. Will it impact on application or its performance?

Like for eg: i will keep some functions in my code but i wont call it or use it any were. If that is the case will it impact on app?

  • 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-08T02:49:06+00:00Added an answer on June 8, 2026 at 2:49 am

    That depends on what exactly you mean by “memory”

    Leaving those extra functions in will not cause your app to use more of the devices RAM while it is running. So no it shouldn’t affect your performance at all.

    Leaving the functions in will cause the final size of your APK to be bigger (I think, but have not tested. It is possible that maybe the compiler is smart enough to ignore them if they aren’t called.). But unless we are talking about some seriously mammoth sized functions the increase in size should be negligible. With phones now adays having fairly large internal storage spaces, and users having the option to move apps to the SD card I would say it shouldn’t really be very high on your list of concerns. If you are deadset on optimizing every last ounce out of your app though removing them will reduce your size some.

    Unused drawable assets (i.e. png files) would be much higher on the list of concerns though, one extra png file would ammount to the same space as A LOT of text in compiled class files.

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

Sidebar

Related Questions

I'd like to do some house keeping stuff (like writing to a file etc)
I am keeping some application meta data in SharedPreferences . Whenever I uninstall the
I want code for keeping 1 second delay in Flex. i.e. i want to
keeping my question short, I have created an application with 3 activities, where A
I am keeping an global object in application cache, retrieving and modifying it based
Keeping performance on a mobile device in mind, what do you think is the
Keeping the GUI responsive while the application does some CPU-heavy processing is one of
Keeping classes loosely coupled is an important aspect of writing code that is easy
Is keeping JMS connections / sessions / consumer always open a bad practice? Code
I am keeping track of a folder of files and their file lengths, at

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.