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 4060876
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:23:41+00:00 2026-05-20T15:23:41+00:00

I need some clarification on the performance of a website. Assume server configuration is

  • 0

I need some clarification on the performance of a website.

Assume server configuration is optimised and the same, just think about file size and number.

  1. How the size of the file affect the performance of the website?

    Let’s assume we have a file with 10000 lines and there is a function with 50 lines. We are calling only that function. Nothing else is used at all.

Another file with this function alone of 50 lines.

  1. If we execute both files, will a small file will be faster or both will execute as same?

  2. Why we are trying to reduce the line of code?

Assume there are 1000 files on the server. We are using only 2 files. Another server having only 2 files. Will there be a difference between these 2 server files execution?

I am using PHP. But the question is general.

  • 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-05-20T15:23:41+00:00Added an answer on May 20, 2026 at 3:23 pm

    This is not something that can be answered with a yes or no. You would have to benchmark how many requests/second your application could handle to see. My opinion is that the difference is insignificant given a properly configured server.

    If you use something like APC, the files get parsed once and stored into memory. At that point, the distribution of the lines of code is hardly relevant.

    If you are not using something like APC, then you have two main things to consider:

    • File I/O time. Accessing multiple smaller files can be slower than accessing a large file.

    • Parsing time. Parsing a large file will take more time than a small one. If you are parsing more than you need, then you are wasting time.

    But again, as most people will tell you, this is probably not something you need to worry about. And you definitely shouldn’t worry about it if you cannot prove that it’s a problem with benchmark and profiling tests.

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

Sidebar

Related Questions

Just need some clarification on how to design a python script file test.py. When
I just need some clarification on variables A normal variable has 2 parts to
I think the docs http://guides.rubyonrails.org/asset_pipeline.html need some clarification. They state: For example, if a
I'm in need of some clarification. I've been reading about REST, and building RESTful
I need some clarification. Are these two methods the same or different? I get
I need some clarification about the behaviour of svn switch. I'm using SVN version
I've read several threads about this topic and need some clarification on a few
I need some clarification about Spring 3.0 MVC and @ModelAttribute annotated method parameter. I
I just need some clarification in regards to unit testing with VS2010. Currently, we
I need some clarification. I have a Reportwriter dll that uses Crystal Reports. It

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.