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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:09:21+00:00 2026-05-24T03:09:21+00:00

In the paper Loop Recognition in C++/Java/Go/Scala (pdf) we find the following quote in

  • 0

In the paper Loop Recognition in C++/Java/Go/Scala (pdf) we find the following quote in the section C++ Tunings:

Structure Peeling. The structure UnionFindNode has 3 cold fields:
type_, loop_, and header_. Since nodes are allocated in an
array, this is a good candidate for peeling optimization. The three
fields can be peeled out into a separate array. Note the header_
field is also dead – but removing it has very little performance
impact. The name_ field in the BasicBlock structure is also dead,
but it fits well in the padding space so it is not removed.

Can some explain to me what cold/dead fields are, and what a peeling optimization is (I understand what the author did there, but what is the rationale behind it)?

  • 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-24T03:09:22+00:00Added an answer on May 24, 2026 at 3:09 am

    Structure peeling is an optimization where you divide a structure into several ones to improve data locality (in order to reduce cache misses). You separate “hot” data (frequently accessed) from “cold” data (seldomly accessed) into two structures to improve the efficiency of the cache, by maximizing the probability of cache hits.

    In the article, the authors decided to move the type_, loop_ and header_ fields away from the more frequently accessed fields.

    For more information, you can have a look at this scientific article about structure layout optimization, which contains a description of structure peeling among other techniques: Structure Layout Optimizations in the Open64 Compiler: Design, Implementation and Measurements

    If you have access to the ACM digital library, you can also download Practical structure layout optimization and Advice.

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

Sidebar

Related Questions

In this paper: Lock-Free Data Structures ( pdf ) the following Compare and Swap
I have one loop for (chr in paste('chr',c(seq(1,22),'X','Y'),sep='')){ . . pdf ('anna.pdf',paper='a4') plot(exp,control,xlim=c(0,400),ylim=c(0,400),pch=20,col='black',main='Tiles',xlab='exp',ylab 'Control')
Is there any article/paper on what features the Python language has to offer? Why
$products = array( 'paper' => Paper Section => array ( 'copier' => Copier and
This Paper ( When the CRC and TCP checksum disagree ) suggests that since
On paper, binary arithmetic is simple, but as a beginning programmer, I'm finding it
I don't like paper documents. I like everything stored on a server. I'd like
for a paper I'm looking for an real-life C function which uses volatile variables.
In a paper about the Life Science Identifiers (see LSID Tester, a tool for
I am writing a paper using the ACM template which capitalizes every letter in

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.