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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:14:19+00:00 2026-06-05T00:14:19+00:00

I am building an App in CodeIgniter. I have a controller API and then

  • 0

I am building an App in CodeIgniter. I have a controller API and then It has got around 300 functions.

I wonder if this is an issue in terms of performance. Any body can help ?

  • 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-05T00:14:22+00:00Added an answer on June 5, 2026 at 12:14 am

    A very large controller would take longer to parse. Every time any method from your Controller is called, the controller class is invoked and instantiated and thus the entire controller has to be parsed (Better put, the fat controller needs to be parsed in its entirity once per request). Parsing a larger file will take longer, however the additional time will be very minute.

    This is the only disadvantage I can think of in terms of performance.

    There are, of course, a host of maintenance issues.

    Explanation of ‘Class in instantiated every time you call one of its methods’

    URL routing in CodeIgniter works this way:

    example.com/controller/method

    So when you visit

    example.com/user/create

    create is a function in the controller class user. To call the create method,user class has to first be instantiated, and then the method is called.

    If your controller class has 200 other functions, they need to be parsed as well.

    If you now point your browser to

    example.com/user/delete

    The previous instantiation of the class no longer exists. The entire class needs to be parsed again.

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

Sidebar

Related Questions

We're building a PHP app based on Good old codeigniter framework and have run
I'm building my first CodeIgniter app - and have a registration form. I'm using
I'm building an app in CodeIgniter. I have an invoice form which uses jQuery
I am building a web app using Codeigniter 2.0.3. I need to create base
I'm building a nice app with CodeIgniter and Ajax JQuery which returns finally a
I am building an app and want to have a lot of the site
HI guys, I building an app using CodeIgniter and I came to a problem.
Im building a codeigniter app which uses json_encode to provide ajax data in many
Building an app using android.support.v4.app , targeting API level 8. Everything's working as planned
Im building an app with a tab-layout. And i have some concerns about tab-layout

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.