Giter Club home page Giter Club logo

cache's Introduction

CACHE

This project must realize different ways of cache reallocation in distributed storage systems.

cache's People

Contributors

christopherqwer avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

cache's Issues

Stack distance-based flow generation.

Generate flow of requests by algorithm:

  1. Initially the stack contains all the addresses.
  2. Loop on the stack distance list. For each one,
    (a) Find the address that appears at this distance into the stack, and use it as the
    next address to be referenced.
    (b) Move this address to the top of the stack.

Parse request

Create class for parsing requests from trace log text file.

Change generating PDF for random value

Generate PDF value by input random value like this:
GetPDF(double pareto_random);

With formula:
double probably = _shape_param * pow(_location_param, _shape_param) / pow(random_value, _shape_param + 1);

Resolve linker errors in Tests project.

When I add include paths and try to use methods from Flow class, I get 8 linker errors such that:

Severity Code Description Project File Line
Error LNK2019 unresolved external symbol "public: __thiscall Request::~Request(void)" (??1Request@@QAE@XZ) referenced in function "public: void * __thiscall Request::`scalar deleting destructor'(unsigned int)" (??_GRequest@@QAEPAXI@Z) Tests C:\Users\user_name\Documents\Visual Studio 2015\Projects\CACHE\Tests\Test.obj 1

What's wrong?

Prettify code

Wrap all _"printf"_s by the functions of a class ConsoleLogger.

Prettify Tests project

Enhance test project.
How devide tests for other modules of CACHE project?
One test module for one class.

Optimize time of LRU working

In class Lru in method LRU() if request is in cache (do map.find) and next line is calculating distance between first iterator and current (avoid duplicated using map.find).

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.