Package de.jarnbjo.jsnappy

Examples of de.jarnbjo.jsnappy.Buffer


      for(File f : new File("resources/testdata/").listFiles()) {
        RandomAccessFile raf = new RandomAccessFile(f, "r");
        byte[] data = new byte[(int) raf.length()];
        raf.readFully(data);
        Buffer compressed = SnappyCompressor.compress(data);

        long l = 0;

        Buffer b = new Buffer();

        int iterations = 4000;

        long t0 = System.nanoTime();
        for(int i=0; i<iterations; i++) {
View Full Code Here


    for(int effort : efforts) {
      for(File f : new File("resources/testdata/").listFiles()) {
        RandomAccessFile raf = new RandomAccessFile(f, "r");
        byte[] data = new byte[(int) raf.length()];
        raf.readFully(data);
        Buffer b = new Buffer();
 
        long l = 0, m = 0;
 
        int iterations = 5;
 
View Full Code Here

TOP

Related Classes of de.jarnbjo.jsnappy.Buffer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.