GithubHelp home page GithubHelp logo

kuldeep725 / text-editor Goto Github PK

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

In this repository, a serial-text editor created by antirez is parallelized.

License: BSD 2-Clause "Simplified" License

Makefile 0.01% C 99.99%

text-editor's Introduction

Text-editor

In this repository, a serial-text editor created by antirez is parallelized.

Parallelization

  1. The reading was very slow for big files (>5MB) because we were initially loading the whole file. To make it fast, the reading was done in a seperate thread and after some significant number of rows were read (say 100) from the file, the editor will be in working mode and the further loading of the file will be done in background and meanwhile the user can still use the editor.
  2. Another parallization was done for saving the file into disk. This is done by creating a seperate thread for saving the file into disk which can be run in background and user can use the editor meanwhile. This can be useful while writing to a big file.

How to run

  • To run serial version :

    • With input file (for passing file "input.c") :
      • make serial "args=input.c"
    • Without input file :
      • make serial
  • To run parallel version :

    • With input file (for passing file "input.c") :
      • make parallel "args=input.c"
    • Without input file :
      • make parallel

text-editor's People

Contributors

kuldeep725 avatar

Watchers

James Cloos 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.