Programmers routinely omit run-time safety checks from applications because they assume that these safety checks would degrade performance. The simplest example is the use of arrays or array-like data structures that do not enforce the constraint that indices must be within bounds. This report documents an attempt to measure the performance penalty incurred by two different implementations of bounds-checking in C and C++ using a simple benchmark and a desktop PC with a modern superscalar CPU. The benchmark consisted of a loop that wrote to array elements in sequential order. With this configuration, relative to the best performance observed for any access method in C or C++, mean degradation of only (0.881 ± 0.009) % was measured for a standard bounds-checking access method in C++. This case study showed the need for further work to develop and refine measurement methods and to perform more comparisons of this type. Comparisons across different use cases, configurations, programming languages, and environments are needed to determine under what circumstances (if any) the performance advantage of unchecked access is actually sufficient to outweigh the negative consequences for security and software quality.

Download full-text PDF

Source
http://www.ncbi.nlm.nih.gov/pmc/articles/PMC4487316PMC
http://dx.doi.org/10.6028/jres.118.012DOI Listing

Publication Analysis

Top Keywords

case study
8
safety checks
8
access method
8
method c++
8
performance
5
study performance
4
performance degradation
4
degradation attributable
4
attributable run-time
4
run-time bounds
4

Similar Publications

Using Virtual Reality to Promote Self-Identity Reconstruction as the Main Focus of Therapy.

J Clin Psychol

January 2025

Department of Clinical Psychology and Psychobiology, The Institute of Neurosciences, Universitat de Barcelona, Barcelona, Spain.

Based on the repertory grid technique, we developed Explore Your Meanings (EYME), a digital platform that helps patients explore identity values and internal conflicts using virtual reality (VR). EYME was part of a research project treating depression in young adults, including 10 weekly, 1-h sessions aimed at changing personal constructs-cognitive schemas that shape how individuals interpret reality. We present the case of Mary, a 21-year-old woman diagnosed with persistent major depressive disorder and social phobia.

View Article and Find Full Text PDF

Septicemic omphalophlebitis by Streptococcus equi subsp. zooepidemicus in a southern right whale calf (Eubalaena australis).

Vet Res Commun

January 2025

Setor de Patologia Veterinária, Universidade Federal do Rio Grande do Sul (UFRGS), Porto Alegre, Rio Grande do Sul, Brazil.

Southern right whales (Eubalaena australis) are mysticete cetaceans commonly observed in the coastal waters of Brazil, particularly in Santa Catarina State. There is limited understanding of the causes of calf mortality in this species, particularly concerning infectious diseases. We report a case of omphalophlebitis caused by Streptococcus equi subsp.

View Article and Find Full Text PDF

Another stroke in the wall: a case of ischemic wall-eyed bilateral internuclear ophthalmoplegia (WEBINO).

Neurol Sci

January 2025

Department of Medicine and Surgery, Unit of Neurology, Neurophysiology, Neurobiology and Psychiatry, Università Campus Bio-Medico di Roma, Via Alvaro del Portillo, 21 - 00128, Roma, Italy.

View Article and Find Full Text PDF

Purpose: Patients with partial or complete DPD deficiency have decreased capacity to degrade fluorouracil and are at risk of developing toxicity, which can be even life-threatening.

Case: A 43-year-old man with moderately differentiated rectal adenocarcinoma on capecitabine presented to the emergency department with complaints of nausea, vomiting, diarrhea, weakness, and lower abdominal pain for several days. Laboratory findings include grade 4 neutropenia (ANC 10) and thrombocytopenia (platelets 36,000).

View Article and Find Full Text PDF

Footrot in sheep and goats: a case study.

Aust Vet J

January 2025

School of Agricultural, Environmental and Veterinary Sciences, Charles Sturt University, Wagga Wagga, Australia.

This observational study highlights the apparent lower severity of footrot in goats compared with sheep, the risk of false negative results from elastase tests, the need to clean contractors' equipment between properties and indicates the potential use of kidding (or lambing) time and individual mob biosecurity in managing footrot.

View Article and Find Full Text PDF

Want AI Summaries of new PubMed Abstracts delivered to your In-box?

Enter search terms and have AI summaries delivered each week - change queries or unsubscribe any time!