piece_table 1.0.2

  • Readme
  • Changelog
  • Example
  • Installing
  • 78

Piece Table #

Travis CI LICENSE Version

A piece table package for dart.

Speed! #

  1. Insert test

    insert string from random place

Piece Table Write Benchmark(RunTime): 6.610980176975939 us.

How it is implemented? #

It uses custom splay tree to implement the table.


  1. Insert test

    insert from empty tree for 2 second

  2. Insert & Erase test

    insert & erase each time from tree size of 1,000,000 for 2 second

Splay Tree Insert Benchmark(RunTime): 3.387535569105691 us.
Splay Tree Insert & Erase Benchmark(RunTime): 4.377287132526745 us.

Above value is for each one insert / one erase.

Feature, Bugs and Speed #

If you want to request feature, found bug, or make this faster, go to github issue.

1.0.0 #

  • Initial version

1.0.1 #

  • Fixed typos

1.0.2 #

  • Added function around


void main() {}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  piece_table: ^1.0.2

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:piece_table/piece_table.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Feb 27, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5

Health suggestions

Format lib/src/piece_table_base.dart.

Run dartfmt to format lib/src/piece_table_base.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
Dev dependencies
benchmark_harness ^1.0.5
pedantic ^1.8.0
random_string ^2.0.1
test ^1.6.0