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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:53:25+00:00 2026-06-03T09:53:25+00:00

Description: I am analysing my application to improve the overall performance, and among the

  • 0

Description:

I am analysing my application to improve the overall performance, and among the different bottle neck I have identified, one of the major area which is draining the performance seems to come from _wordcopy_fwd_dest_aligned instruction/function.

Below is a short description of the problem –

  • Function gets a buffer stream – containing the length and the char stream in length-value format.
  • Read the len (some code to check for machine alignment etc).
  • Read the character array and assign it to the string.

PusedoCode
The pusedo code looks as below

read_buf(max_len)  
v.assign((char*)pdata,max_len)  

Now, when the CPU cycles are checked from quantify report, I see heavy utilization in the _wordcopy_fwd_dest_aligned. Also from reports such as – Improve CPU Cycles for performance, I see that idea would be to reduce this by using any alternative approach.

Question

  1. Is there a simple alternative for the above code, which reduces/eliminates the _wordcopy_fwd_dest_aligned usage thus gaining me the performance (even at the cost of memory).
  2. In case the above does not work, any suggested area of work around for the above code? But the final o/p needs to be in string itself.

PS:
a. Since the code needs to work in distributed environment, the word alignment etc needs to be handled, so bit hesitant about option (2) in the Question list.
b. We are using stlport library, so does this needs any tweaking/Can this cause the problem? A simple code with std::string v.assign(...) did not show up _wordcopy_fwd_dest_aligned.

  • 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-03T09:53:26+00:00Added an answer on June 3, 2026 at 9:53 am

    That IS the optimized copy routine. To get more performance, you will likely have to eliminate copies, or else sacrifice compatibility with some processor models.

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

Sidebar

Related Questions

I have a document that contains a title and a description. One of the
Description: I have a problem regarding DataGridView . I need to show a Client_Name
Firebug is complaining about this line: $(#original-description).text(response['course']['original_description']).hide(); Do I have a syntax error? Looks
I have a table feeds that contains a collection of code-description rows. e.g. Key
Problem description After a while of running my java server application I am experiencing
I have created sqlite database which stores Latitude,Longitude and some other information like description.
description_id description -------------- ------------- 1 Ampicillin Oral 1 Ofloxacin Oral 1 Sulfamoxole+Trimethoprim Oral 2
Description: If we use java objects jruby get permgen too: System.out.println(Initialazing..); //Spring applicaton context
Description : I am creating customized title bar. The codes for customization is as
Description: An unhandled exception occurred during the execution of the current web request. Please

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.