GithubHelp home page GithubHelp logo

akashi96 / high-performance-linked-lists Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 726 KB

This repository consists of Project on High Performance Linked Lists.

C++ 100.00%
cpp11 cppprojects linked-list memory-management memory-pool operator-overloading placement-new

high-performance-linked-lists's Introduction

High Performance Linked Lists

This project aims to provide a better and efficient way of implementing the C++ Linked Lists Data Structure. The conventional implementation method makes use of malloc() function, this function is used to allocate the system memory for the Linked List Node by making a System call. Everytime a system call is made, the operating system halts the program execution, allocates the required chunk of memory and then resumes the program. In case, the frequency of allocation and deallocation is very high(a huge size of the linked list might bring up the case), this might affect the execution time of the program, making the data structure highly ineffcient for such tasks. Now comes the saviour: Memory Pool. The project makes use of the concept of memory pool in which, a sufficient enough chunk of memory is reserved in advance so that the program does not require making a system call, and the memory requirements for the node be fulfilled by just allocating from the reserved pool. The above procedure definitely makes the program faster and more efficient.

The Repository consists of 2 directories:

1) Simple Linked Lists:

The implementation of the concept on the normal C++ Linked Lists Data Structure.

screenshot

2) Stratified Linked Lists:

The implementation of the concept on a modified and more advanced model of the Linked Lists Data Structure.  

stratified linked lists

high-performance-linked-lists's People

Contributors

akashi96 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.