Giter VIP home page Giter VIP logo

fastgrep-fork's Introduction

fastgrep - a faster "grep -r"

A utility similar to grep -r ... but focused on raw speed and utilization of system resources. This tool is useful for quickly scanning large directories for files containing a specific string.

The intro gif is fastgrep scanning the entire, un-indexed, 1.15.1 craftbukkit sources on a Kali Linux install running on an 4-core laptop CPU (the i7-8550U @ 1.8GHz) for the string "createInventory". That is around 1 million lines of code searched in under 100ms. The same scan would take grep several minutes.

$ cd ~/craftbukkit-1.15.1-src
$ cloc .
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Java                          8099         200332           4926         959246
-------------------------------------------------------------------------------
SUM:                          8099         200332           4926         959246
-------------------------------------------------------------------------------

This functionality can be very useful for developing or modding large, documented, codebases (e.g. open-source or reverse engineered games, operating systems, etc.).

IntelliJ IDEA Tool Integration

For more info see this.

Building

Requirements
  • Building: cmake, gcc
  • Running: argp, pthread
Installing from binary release - Linux (Debian/Ubuntu)
curl -fsSL https://raw.githubusercontent.com/divisionind/fastgrep/master/get_fastgrep.sh -o get_fastgrep.sh
sudo sh get_fastgrep.sh
Installing from source - Linux
  1. Clone repo git clone --recursive https://github.com/divisionind/fastgrep.git
  2. Enter directory cd fastgrep
  3. Build locally and install sudo sh install.sh

NOTE: The install script assumes apt as the package manager. If you are running a different package manager, install the requirements and remove that section of the install script.

Windows
  1. Download the latest windows installer from the releases page
  2. Run the installer, make sure you select Add fastgrep to the system PATH for all users, complete installation

Donate

  • XMR: 83vzgeeKebLh6pj2YtBqn7PqxY47CkyzmLzUhmHfhTCQdj9Mfad4FUF12Yu9ry5uUh5JASTcXg5Fwji5ibjUngw9LomnH6Z
  • ETH: 0x1bdA7dB6484802DFf4945edc52363B4A8FAcb470
  • ETC: 0x4a368bb4cd854f650169ce207268c303ffecafb2

fastgrep-fork's People

Contributors

drew6017 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.