Hyppää sisältöön
    • Suomeksi
    • In English
Trepo
  • Suomeksi
  • In English
  • Kirjaudu
Näytä viite 
  •   Etusivu
  • Trepo
  • Opinnäytteet - ylempi korkeakoulututkinto
  • Näytä viite
  •   Etusivu
  • Trepo
  • Opinnäytteet - ylempi korkeakoulututkinto
  • Näytä viite
JavaScript is disabled for your browser. Some features of this site may not work without it.

Live C++ objects in memory-mapped files: Large persistent C++ object storage on the Windows platform

Salla, Rasmus (2026)

 
Avaa tiedosto
SallaRasmus.pdf (1.097Mt)
Lataukset: 



Salla, Rasmus
2026

Tietotekniikan DI-ohjelma - Master's Programme in Information Technology
Informaatioteknologian ja viestinnän tiedekunta - Faculty of Information Technology and Communication Sciences
This publication is copyrighted. You may download, display and print it for Your own personal use. Commercial use is prohibited.
Hyväksymispäivämäärä
2026-05-11
Näytä kaikki kuvailutiedot
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:tuni-202605085254
Tiivistelmä
C++ objects are usually stored in volatile memory via the use of stack or heap memory. A program that stores a lot of C++ objects in its lifetime has an innate risk of data loss whenever the program or system crashes. Serializing the C++ objects to persistent storage is a way to avoid this, but this often requires a translation layer -- a serializer and a parser. Instead, if it were possible to serialize C++ objects to their native binary format, it would allow trivial serialization and zero-copy deserialization of entire C++ data structures.

This thesis looked into persisting C++ objects into file-backed memory-mapped files for the purposes of high-performance C++ object serialization and deserialization. The goal was to design and evaluate an object storage system that manages multiple memory-mapped files, where each file is capable of containing objects in a layout defined by the integrating program. The main problems were interpreting the C++ standard and its object model, and the nuances of the Operating System (OS) virtual memory system, and putting all that together to build a memory-safe, C++ standard-conformant, and practically usable persistent object storage system.

As a result, the thesis proposes an object storage system capable of persisting C++ data structures into memory-mapped files with std::memcpy serialization and zero-copy deserialization. The deserialization cost is only mapping the file back to memory. The evaluated program was found to reduce its physical memory usage by 50 %. Performance tests showed storage creation throughput of up to 120 000 variably sized objects per second for a storage with roughly 450 000 objects. The system was found to be capable of being compliant with the C++ standard, and several critical design directions were discovered and documented, for example: pointer representation, mapped memory management, and object type requirements.

The most important findings were compiled into a list of best practices, which help guide through the key decisions for designing an equivalent system. Potential applications are in latency-sensitive domains where shared, durable C++ objects are required, for example, real-time analytics, video game engines, or general low-latency inter-process data structures.
Kokoelmat
  • Opinnäytteet - ylempi korkeakoulututkinto [43490]

Samankaltainen aineisto

Näytetään aineisto, joilla on samankaltaisia nimekkeitä, tekijöitä tai asiasanoja.

  • I Object! A Corpus-Based Study of the Complementation of the Verb Object in the 18th, 19th, and 20th Centuries 

    SEPPI, ELINA (2008)
    Pro gradu -tutkielma
    Tässä korpuspohjaisessa pro gradu – tutkielmassa tarkastellaan englannin kielen verbiä object, sekä sen eri komplementtivariantteja. Tutkimuksessa huomioitiin myös verbin taivutetut muodot objects, objected, ja objecting. ...
  • The Architectural Object as Aesthetic Object, Alvar Aalto's House of Culture 

    Santos, Joaquim Marcelino
    Tampereen teknillinen korkeakoulu. Julkaisuja (Tampere University of Technology, 2001)
    Artikkeliväitöskirja
  • Autonomous Robot Exploration with Selective Object Discrimination by Using Deep Learning Object Detection 

    Blom-Dahl Casanova, Christen (2019)
    Diplomityö
    Since the geopolitical world is not polarized anymore, the market competitivity is increasing as never before so in order to survive as an industrial organization, it is key to be competitive. That is, reducing costs and ...
Kalevantie 5
PL 617
33014 Tampereen yliopisto
oa[@]tuni.fi | Tietosuoja | Saavutettavuusseloste
 

 

Selaa kokoelmaa

TekijätNimekkeetTiedekunta (2019 -)Tiedekunta (- 2018)Tutkinto-ohjelmat ja opintosuunnatAvainsanatJulkaisuajatKokoelmat

Omat tiedot

Kirjaudu sisäänRekisteröidy
Kalevantie 5
PL 617
33014 Tampereen yliopisto
oa[@]tuni.fi | Tietosuoja | Saavutettavuusseloste