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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:12:04+00:00 2026-06-06T16:12:04+00:00

Splitting up functions, into smaller sub function into the code, can effect efficiency of

  • 0

Splitting up functions, into smaller sub function into the code, can effect efficiency of the program?
while reducing cyclomatic complexity of functions i have break down function into smaller parts, and has used helper function and inline functions for it.

void functionParent(arguments)
{

    intialCheckFunction(arguments);
    functionOne();
    functionTwo();
    functionThree();
    functionFour();

    return STATUS;
}

void functionOne()
{
   /*follows unary Principle.*/
}

My concern is regarding the stack pointer, does a frequent switch of SP reduce efficiency of program drastically or it negligible.
The above functionOne,Two,.. are having UNARY Logic in them.
Kindenter code herely reply in both context, C as well C++

  • 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-06T16:12:06+00:00Added an answer on June 6, 2026 at 4:12 pm

    Generally I prefer to break up function into smaller functions so that we can reuse it in other places, It is often required during re-factoring. If you are so concerned about the switch and if the function is really small you can mark it as inline. However i don’t think having too many functions make such a huge difference in performance of your program.

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

Sidebar

Related Questions

I created a function for splitting an image into multiple images, but when I
We are splitting a big svn repository (100k+ revs) into several smaller repos. I
I found an odd error when I was splitting up my code into a
Is there any function for splitting a string into chunks based on a separator?
I am splitting off some of the code in my project into a separate
I thought about splitting up recursion into smaller recursive sizes, then wondered if it
I have the following function that does string splitting: on splitText(aString, delimiter) set retVal
Do splitting fields into multiple tables ever yield faster queries? Consider the following two
I am currently trying to convert a VB6 program into C#. There was extensive
Possible Duplicate: Splitting one column into two columns in SQL Server CE I am

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.