Giter Club home page Giter Club logo

fastsearch's Introduction

FastSearch

Welcome to FastSearch!

This project is meant to provide quick, easy text (i.e. string) searching over a list of objects. We take two assumptions which are that we are doing case insensitive searching and can search at any point in the string.

Algorithm Description
LinqSearch Uses a simple Parallel LINQ Contains query with precomputed case insensitive strings
HashSearch Uses a precomputed hash of each substring combination
CharSequenceSearch Uses a character sequence tree to facilitate searching

Here are some quick results from testing.

  • Search results is the total time to perform 10000 searches.
  • Indexing results is the total time to index 10000 items.

We will update the library with new and more interesting techniques as time goes on. In addition, we plan to keep this a generic library which can be used widely by all developers. We are taking this approach replace functionality with new and improved algorithms as they are made available.

How To Get Started

  1. Download the FastSearch library from NuGet.
  2. Make sure your objects override ToString().
  3. Create a new CharSequenceSearch passing in your IEnumerable<T>

Features

  1. Support for ToString() out-of-the-box.
  2. Index function Func<T, string> to return a custom string representation of an object.
  3. Maximum degree of parallelism for index building and searching

Enjoy!

Your Friends @MILL5

fastsearch's People

Contributors

chiefinnovator avatar nathanfranz avatar spacedoutt avatar

Stargazers

小辉辉 avatar Jeff Ward avatar Adam Bajguz avatar

Watchers

Carlos Alfonso Pérez Rivera avatar Andy Martin avatar Harold Adrián Bolaños Rodríguez avatar Dany Johan Perez Perez avatar  avatar Geraldine G. Sheinfell avatar James Pansarasa avatar

Forkers

ywscr

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.