Code Monkey home page Code Monkey logo

avro-android-experiments's Introduction

Avro Android Experiments

This is not a production repository. I'll use it for testing, benchmarking and playing with Avro Phonetic on Android Platform.

Expect horrible sphaggeti codes with zero comments, I didn't write them for your viewing pleasure. Period.

Forking will do no good unless you want to contribute.

myNotes:

  1. Perst performs way better than sqlite! As Database I/O is significantly better now, I can skip in memory database. Small heap size restriction on Android (prior Honeycomb) is no more a concern.

  2. Average word lookup still takes 300+ 150+ ms with java.util.regex on Galaxy Y. Need to check with different regex persers based on this benchmark.

    1. Rex (the fastest library mentioned in the benchmark) is discontinued,sites shows 404. I downloaded the library using code search engines, but it doesn't work, fails to match any pattern.
    2. ICU4J is blazing fast on average lookup (30ms vs. 150ms), but it's UnicodeSet class is not exactly a regex parser. If I choose to continue with that, all existing patterns may need to be changed. :-S
    3. monq.jfa.Regexp, dk.brics.automaton.RegExp, jregex.Pattern are either slower or shows near equal performance compared to built-in regex under Android. com.karneim.util.collection.regex.Pattern site shows 404. Discarded them all.
  3. Need to check with a different approach with Perst OODBMS. Instead of linked word lookup, I'll place words right inside the pattern array. Should be some hundreds times faster, but db size may be huge! Update: Test done. DB size increased in tolerable limit, but database I/O performance gain was huge (20ms vs. 200 ms). Planned to use this.

  4. Important: Pattern for 'o' needs to be adjusted when it is the last item. (Hint: remove ([ওোঅ]|(অ্য)|(য়ো?))?)

avro-android-experiments's People

Contributors

mugli avatar

Watchers

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