You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2018/03/19 09:14:22 UTC
[directory-ldap-api] branch master updated: Removed the
first-benchmark project as it was just a experiment
This is an automated email from the ASF dual-hosted git repository.
elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-ldap-api.git
The following commit(s) were added to refs/heads/master by this push:
new 1881898 Removed the first-benchmark project as it was just a experiment
1881898 is described below
commit 18818980d35892d32902f474b5c029d3f3cea69e
Author: Emmanuel Lécharny <el...@symas.com>
AuthorDate: Mon Mar 19 10:14:16 2018 +0100
Removed the first-benchmark project as it was just a experiment
---
first-benchmark/.classpath | 31 --
first-benchmark/.project | 28 --
.../.settings/org.eclipse.core.resources.prefs | 4 -
.../.settings/org.eclipse.jdt.core.prefs | 13 -
.../.settings/org.eclipse.m2e.core.prefs | 4 -
first-benchmark/pom.xml | 347 ---------------------
.../java/org/apache/directory/MyBenchmark.java | 331 --------------------
.../src/main/resources/log4j.properties | 22 --
first-benchmark/target/checkstyle-cachefile | 2 -
first-benchmark/target/checkstyle-checker.xml | 231 --------------
first-benchmark/target/checkstyle-result.xml | 8 -
first-benchmark/target/classes/log4j.properties | 22 --
12 files changed, 1043 deletions(-)
diff --git a/first-benchmark/.classpath b/first-benchmark/.classpath
deleted file mode 100644
index edc9698..0000000
--- a/first-benchmark/.classpath
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" output="target/classes" path="src/main/java">
- <attributes>
- <attribute name="optional" value="true"/>
- <attribute name="maven.pomderived" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="src" output="target/test-classes" path="src/test/java">
- <attributes>
- <attribute name="optional" value="true"/>
- <attribute name="maven.pomderived" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
- <attributes>
- <attribute name="maven.pomderived" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
- <attributes>
- <attribute name="maven.pomderived" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
- <attributes>
- <attribute name="maven.pomderived" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="output" path="target/classes"/>
-</classpath>
diff --git a/first-benchmark/.project b/first-benchmark/.project
deleted file mode 100644
index 17eed1c..0000000
--- a/first-benchmark/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>first-benchmark</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.sonarlint.eclipse.core.sonarlintBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.m2e.core.maven2Builder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.m2e.core.maven2Nature</nature>
- </natures>
-</projectDescription>
diff --git a/first-benchmark/.settings/org.eclipse.core.resources.prefs b/first-benchmark/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 82e28d1..0000000
--- a/first-benchmark/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-eclipse.preferences.version=1
-encoding//src/main/java=ISO-8859-1
-encoding//src/main/resources=UTF-8
-encoding/<project>=UTF-8
diff --git a/first-benchmark/.settings/org.eclipse.jdt.core.prefs b/first-benchmark/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 5ce4518..0000000
--- a/first-benchmark/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,13 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/first-benchmark/.settings/org.eclipse.m2e.core.prefs b/first-benchmark/.settings/org.eclipse.m2e.core.prefs
deleted file mode 100644
index f897a7f..0000000
--- a/first-benchmark/.settings/org.eclipse.m2e.core.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-activeProfiles=
-eclipse.preferences.version=1
-resolveWorkspaceProjects=true
-version=1
diff --git a/first-benchmark/pom.xml b/first-benchmark/pom.xml
deleted file mode 100644
index 5cf9a4f..0000000
--- a/first-benchmark/pom.xml
+++ /dev/null
@@ -1,347 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-Copyright (c) 2014, Oracle America, Inc.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
- * Neither the name of Oracle nor the names of its contributors may be used
- to endorse or promote products derived from this software without
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
-LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
-THE POSSIBILITY OF SUCH DAMAGE.
---><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <artifactId>api-parent</artifactId>
- <groupId>org.apache.directory.api</groupId>
- <version>2.0.0-M1-SNAPSHOT</version>
- </parent>
-
- <groupId>org.apache.directory</groupId>
- <artifactId>first-benchmark</artifactId>
- <version>1.0</version>
- <packaging>jar</packaging>
-
- <name>JMH benchmark sample: Java</name>
-
- <!--
- This is the demo/sample template build script for building Java benchmarks with JMH.
- Edit as needed.
- -->
-
- <prerequisites>
- <maven>3.0</maven>
- </prerequisites>
-
- <dependencies>
- <dependency>
- <groupId>org.openjdk.jmh</groupId>
- <artifactId>jmh-core</artifactId>
- <version>${jmh.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.openjdk.jmh</groupId>
- <artifactId>jmh-generator-annprocess</artifactId>
- <version>${jmh.version}</version>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.directory.api</groupId>
- <artifactId>api-util</artifactId>
- <version>2.0.0-M1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.directory.api</groupId>
- <artifactId>api-asn1-api</artifactId>
- <version>2.0.0-M1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.directory.api</groupId>
- <artifactId>api-asn1-ber</artifactId>
- <version>2.0.0-M1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.directory.api</groupId>
- <artifactId>api-i18n</artifactId>
- <version>2.0.0-M1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.directory.api</groupId>
- <artifactId>api-ldap-model</artifactId>
- <version>2.0.0-M1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.directory.api</groupId>
- <artifactId>api-ldap-client-api</artifactId>
- <version>2.0.0-M1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.directory.api</groupId>
- <artifactId>api-ldap-codec-core</artifactId>
- <version>2.0.0-M1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.directory.api</groupId>
- <artifactId>api-ldap-codec-standalone</artifactId>
- <version>2.0.0-M1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.directory.api</groupId>
- <artifactId>api-ldap-extras-aci</artifactId>
- <version>2.0.0-M1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.directory.api</groupId>
- <artifactId>api-ldap-extras-codec</artifactId>
- <version>2.0.0-M1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.directory.api</groupId>
- <artifactId>api-ldap-extras-codec-api</artifactId>
- <version>2.0.0-M1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.directory.api</groupId>
- <artifactId>api-ldap-extras-sp</artifactId>
- <version>2.0.0-M1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.directory.api</groupId>
- <artifactId>api-ldap-extras-trigger</artifactId>
- <version>2.0.0-M1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.directory.api</groupId>
- <artifactId>api-ldap-extras-util</artifactId>
- <version>2.0.0-M1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.directory.api</groupId>
- <artifactId>api-ldap-net-mina</artifactId>
- <version>2.0.0-M1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.directory.api</groupId>
- <artifactId>api-ldap-schema-converter</artifactId>
- <version>2.0.0-M1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>commons-pool</groupId>
- <artifactId>commons-pool</artifactId>
- <version>1.6</version>
- </dependency>
-
- <!--dependency>
- <groupId>ch.qos.logback</groupId>
- <artifactId>logback-classic</artifactId>
- <version>1.1.3</version>
- </dependency-->
-
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <version>1.7.16</version>
- </dependency>
-
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <version>1.7.16</version>
- </dependency>
-
- <!--dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.17</version>
- </dependency-->
-
- <dependency>
- <groupId>org.apache.directory.api</groupId>
- <artifactId>api-ldap-schema-data</artifactId>
- <version>2.0.0-M1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.mina</groupId>
- <artifactId>mina-core</artifactId>
- <version>2.0.13</version>
- </dependency>
-
- <!-- The original antlr artifact is needed by the antlr-maven-plugin which
- checks for its existence within the classpath. Use scope provided to avoid
- propagation to dependent projects. Choosen artifact is a valid OSGi bundle
- repackaged by ServiceMix team, kudos to them. -->
- <dependency>
- <groupId>antlr</groupId>
- <artifactId>antlr</artifactId>
- <scope>provided</scope>
- <version>2.7.7</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.servicemix.bundles</groupId>
- <artifactId>org.apache.servicemix.bundles.antlr</artifactId>
- <version>2.7.7_5</version>
- </dependency>
-
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <version>2.6</version>
- </dependency>
-
- <dependency>
- <groupId>commons-collections</groupId>
- <artifactId>commons-collections</artifactId>
- <version>3.2.2</version>
- </dependency>
-
- <dependency>
- <groupId>commons-codec</groupId>
- <artifactId>commons-codec</artifactId>
- <version>1.10</version>
- </dependency>
-
- <dependency>
- <groupId>findbugs</groupId>
- <artifactId>annotations</artifactId>
- <scope>provided</scope>
- <version>1.0.0</version>
- </dependency>
- </dependencies>
-
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <jmh.version>1.12</jmh.version>
- <javac.target>1.6</javac.target>
- <uberjar.name>benchmarks</uberjar.name>
- </properties>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.1</version>
- <configuration>
- <compilerVersion>${javac.target}</compilerVersion>
- <source>${javac.target}</source>
- <target>${javac.target}</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <version>2.2</version>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>shade</goal>
- </goals>
- <configuration>
- <finalName>${uberjar.name}</finalName>
- <transformers>
- <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
- <mainClass>org.openjdk.jmh.Main</mainClass>
- </transformer>
- </transformers>
- <filters>
- <filter>
- <!--
- Shading signed JARs will fail without this.
- http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar
- -->
- <artifact>*:*</artifact>
- <excludes>
- <exclude>META-INF/*.SF</exclude>
- <exclude>META-INF/*.DSA</exclude>
- <exclude>META-INF/*.RSA</exclude>
- </excludes>
- </filter>
- </filters>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- <pluginManagement>
- <plugins>
- <plugin>
- <artifactId>maven-clean-plugin</artifactId>
- <version>2.5</version>
- </plugin>
- <plugin>
- <artifactId>maven-deploy-plugin</artifactId>
- <version>2.8.1</version>
- </plugin>
- <plugin>
- <artifactId>maven-install-plugin</artifactId>
- <version>2.5.1</version>
- </plugin>
- <plugin>
- <artifactId>maven-jar-plugin</artifactId>
- <version>2.4</version>
- </plugin>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>2.9.1</version>
- </plugin>
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.6</version>
- </plugin>
- <plugin>
- <artifactId>maven-site-plugin</artifactId>
- <version>3.3</version>
- </plugin>
- <plugin>
- <artifactId>maven-source-plugin</artifactId>
- <version>2.2.1</version>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.17</version>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
-
-</project>
diff --git a/first-benchmark/src/main/java/org/apache/directory/MyBenchmark.java b/first-benchmark/src/main/java/org/apache/directory/MyBenchmark.java
deleted file mode 100644
index 70892d6..0000000
--- a/first-benchmark/src/main/java/org/apache/directory/MyBenchmark.java
+++ /dev/null
@@ -1,331 +0,0 @@
-/*
- * Copyright (c) 2014, Oracle America, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * * Neither the name of Oracle nor the names of its contributors may be used
- * to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.apache.directory;
-
-import java.util.Collections;
-import java.util.List;
-
-//import org.apache.directory.api.ldap.model.name.Dn;
-import org.apache.directory.api.ldap.model.schema.SchemaManager;
-import org.apache.directory.api.ldap.model.exception.LdapInvalidDnException;
-import org.apache.directory.api.ldap.model.name.Dn;
-import org.apache.directory.api.ldap.schema.manager.impl.DefaultSchemaManager;
-import org.apache.log4j.Level;
-import org.apache.log4j.LogManager;
-import org.apache.log4j.Logger;
-import org.openjdk.jmh.annotations.Benchmark;
-
-public class MyBenchmark
-{
- private static SchemaManager schemaManager;
- private static StringBuilder sb = new StringBuilder( "AZERTYUIOPQSDFGJKL" );
- private static Dn dn1;
- private static Dn dn2;
-
- static
- {
- schemaManager = new DefaultSchemaManager();
-
- List<Logger> loggers = Collections.<Logger>list( LogManager.getCurrentLoggers() );
- loggers.add( LogManager.getRootLogger() );
-
- for ( Logger logger : loggers )
- {
- logger.setLevel( Level.OFF );
- }
-
- try
- {
- dn1 = new Dn( schemaManager, "cn=elecharny,dc=symas,dc=com" );
- dn2 = new Dn( schemaManager, "cn=elecharnu,dc=symas,dc=com" );
- }
- catch ( LdapInvalidDnException e )
- {
- e.printStackTrace();
- }
- }
-
- private void exch( int[] indices, int x, int y )
- {
- int tmp = indices[x];
- indices[x] = indices[y];
- indices[y] = tmp;
- }
-
-
- private int getValue( int[] values, int[] indices, int pos )
- {
- return values[indices[pos]];
- }
-
-
- private int comp( int a, int b )
- {
- return a - b;
- }
-
- private int slap_sort_vals( int[] values, int small )
- {
- int[] istack = new int[16];
- int i, j, k, left, right, jstack, match, indices[], itmp, rc = 0;
- int nvals = values.length;
- int is_norm;
- int a, cv[];
-
- /*
- #define SWAP(a,b,tmp) tmp=(a);(a)=(b);(b)=tmp
- #define COMP(a,b) match=0; rc = ordered_value_match( &match, \
- attributeDescription, matchingRule, SLAP_MR_EQUALITY \
- | SLAP_MR_VALUE_OF_ASSERTION_SYNTAX \
- | SLAP_MR_ASSERTED_VALUE_NORMALIZED_MATCH \
- | SLAP_MR_ATTRIBUTE_VALUE_NORMALIZED_MATCH, \
- &(a), &(b), text );
- */
-
- if ( nvals <= 1 )
- {
- return 0;
- }
-
- /* record indices to preserve input ordering */
- indices = new int[ nvals ];
-
- for (i=0; i<nvals; i++)
- {
- indices[i] = i;
- }
-
- right = nvals-1;
- left = 0;
- jstack = 0;
-
- for(;;)
- {
- if (right - left < 8)
- { /* Insertion sort */
- match=1;
-
- for (j=left+1;j<=right;j++)
- {
- itmp = indices[j];
- a = values[itmp];
-
- for (i=j-1;i>=0;i--)
- {
- COMP(cv[indices[i]], a);
-
- if ( match <= 0 )
- {
- break;
- }
-
- indices[i+1] = indices[i]
- }
-
- indices[i+1] = itmp;
-
- if ( match == 0 )
- {
- goto done;
- }
- }
-
- if ( jstack == 0 )
- {
- break;
- }
-
- right = istack[jstack--];
- left = istack[jstack--];
- }
- else
- {
- k = (left + right) >> 1; /* Choose median of left, center, right */
- SWAP(indices[k],indices[left+1],itmp);
- COMP( cv[indices[left]], cv[indices[right]] );
-
- if ( match > 0 )
- {
- SWAP(indices[left],indices[right],itmp);
- }
- else if ( match == 0 )
- {
- i = right;
- break;
- }
-
- COMP( cv[indices[left+1]], cv[indices[right]] );
-
- if ( match > 0 )
- {
- SWAP(indices[left+1],indices[right],itmp);
- }
- else if ( match == 0 )
- {
- i = right;
- break;
- }
-
- COMP( cv[indices[left]], cv[indices[left+1]] );
-
- if ( match > 0 )
- {
- SWAP(indices[left],indices[left+1],itmp);
- }
- else if ( match == 0 )
- {
- i = left;
- break;
- }
-
- i = left+1;
- j = right;
- a = cv[indices[i]];
-
- for(;;)
- {
- do
- {
- i++;
- COMP( cv[indices[i]], a );
- }
- while( match < 0 );
-
- while( match > 0 )
- {
- j--;
- COMP( cv[indices[j]], a );
- }
-
- if (j < i)
- {
- match = 1;
- break;
- }
-
- if ( match == 0 )
- {
- i = left+1;
- break;
- }
-
- SWAP(indices[i],indices[j],itmp);
- }
-
- if ( match == 0 )
- {
- break;
- }
-
- SWAP(indices[left+1],indices[j],itmp);
- jstack += 2;
-
- if (right-i+1 > j-left)
- {
- istack[jstack] = right;
- istack[jstack-1] = i;
- right = j;
- }
- else
- {
- istack[jstack] = j;
- istack[jstack-1] = left;
- left = i;
- }
- }
- }
-
- done:
- if ( match == 0 && i >= 0 )
- {
- *dup = indices[i];
- }
-
- /* For sorted attributes, put the values in index order */
- if ( rc == LDAP_SUCCESS && match &&
- ( attributeDescription->ad_type->sat_flags & SLAP_AT_SORTED_VAL ))
- {
- BerVarray tmpv = slap_sl_malloc( sizeof( struct berval ) * nvals, ctx );
-
- for ( i = 0; i<nvals; i++ )
- {
- tmpv[i] = cv[indices[i]];
- }
-
- for ( i = 0; i<nvals; i++ )
- {
- cv[i] = tmpv[i];
- }
-
- /* Check if the non-normalized array needs to move too */
- if ( is_norm )
- {
- cv = ml->sml_values;
-
- for ( i = 0; i<nvals; i++ )
- {
- tmpv[i] = cv[indices[i]];
- }
-
- for ( i = 0; i<nvals; i++ )
- {
- cv[i] = tmpv[i];
- }
- }
-
- slap_sl_free( tmpv, ctx );
- }
-
- slap_sl_free( indices, ctx );
-
- if ( rc == LDAP_SUCCESS && match == 0 )
- {
- /* value exists already */
- assert( i >= 0 );
- assert( i < nvals );
- rc = LDAP_TYPE_OR_VALUE_EXISTS;
- }
-
- ret:
- return rc;
- }
- }
-
-
- @Benchmark
- public void testToLowerAscii2Method() throws Exception
- {
- // This is a demo/sample template for building your JMH benchmarks. Edit as needed.
- // Put your benchmark code here.
- dn1.equals( dn2 );
- }
-}
diff --git a/first-benchmark/src/main/resources/log4j.properties b/first-benchmark/src/main/resources/log4j.properties
deleted file mode 100644
index 7c79176..0000000
--- a/first-benchmark/src/main/resources/log4j.properties
+++ /dev/null
@@ -1,22 +0,0 @@
-#############################################################################
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#############################################################################
-log4j.rootCategory=ERROR, stdout
-
-log4j.appender.stdout=org.apache.log4j.ConsoleAppender
-log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
-log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n
-log4j.org.apache.directory.api.ldap.codec.standalone.StandaloneLdapCodecService=DEBUG
diff --git a/first-benchmark/target/checkstyle-cachefile b/first-benchmark/target/checkstyle-cachefile
deleted file mode 100644
index a018721..0000000
--- a/first-benchmark/target/checkstyle-cachefile
+++ /dev/null
@@ -1,2 +0,0 @@
-#Mon Oct 03 23:50:37 CEST 2016
-configuration*?=B99DD5CE4ED9643CB5685108E6AAFBEAA5DDBAEE
diff --git a/first-benchmark/target/checkstyle-checker.xml b/first-benchmark/target/checkstyle-checker.xml
deleted file mode 100644
index 7230e3b..0000000
--- a/first-benchmark/target/checkstyle-checker.xml
+++ /dev/null
@@ -1,231 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-
-<!DOCTYPE module PUBLIC
- "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
- "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
-
-<!--
-
- Checkstyle is very configurable. Be sure to read the documentation at
- http://checkstyle.sf.net (or in your downloaded distribution).
-
- Most Checks are configurable, be sure to consult the documentation.
-
- To completely disable a check, just comment it out or delete it from the file.
-
- Finally, it is worth reading the documentation.
-
--->
-
-<module name="Checker">
- <!--
- If you set the basedir property below, then all reported file
- names will be relative to the specified directory. See
- http://checkstyle.sourceforge.net/5.x/config.html#Checker
-
- <property name="basedir" value="${basedir}"/>
- -->
-
- <!-- Checks that each Java package has a Javadoc file used for commenting. -->
- <!-- See http://checkstyle.sf.net/config_javadoc.html#JavadocPackage -->
- <!--
- <module name="JavadocPackage">
- <property name="allowLegacy" value="true"/>
- </module>
- -->
-
- <!-- Checks whether files end with a new line. -->
- <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
- <!-- module name="NewlineAtEndOfFile"/ -->
-
- <!-- Checks that property files contain the same keys. -->
- <!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
- <module name="Translation"/>
-
- <module name="FileLength"/>
-
- <!-- Following interprets the header file as regular expressions. -->
- <!-- <module name="RegexpHeader"/> -->
-
- <module name="FileTabCharacter">
- <property name="eachLine" value="true"/>
- </module>
-
- <!--
- <module name="RegexpSingleline">
- <!- \s matches whitespace character, $ matches end of line. ->
- <property name="format" value="\s+$"/>
- <property name="message" value="Line has trailing spaces."/>
- </module>
- -->
-
- <module name="TreeWalker">
-
- <property name="cacheFile" value="${checkstyle.cache.file}"/>
-
- <!-- Checks for Javadoc comments. -->
- <!-- See http://checkstyle.sf.net/config_javadoc.html -->
-<!-- <module name="JavadocMethod"> -->
-<!-- No Javadoc required for private methods -->
-<!-- <property name="scope" value="protected"/> -->
-<!-- </module> -->
-<!-- <module name="JavadocType"> -->
-<!-- <property name="scope" value="public"/> -->
-<!-- </module> -->
-<!-- <module name="JavadocVariable"> -->
-<!-- No Javadoc required for private fields -->
-<!-- <property name="scope" value="protected"/> -->
-<!-- </module> -->
-<!-- <module name="JavadocStyle"> -->
-<!-- <property name="checkFirstSentence" value="false"/> -->
-<!-- </module> -->
-
-
- <!-- Checks for Naming Conventions. -->
- <!-- See http://checkstyle.sf.net/config_naming.html -->
- <module name="ConstantName"/>
- <module name="LocalFinalVariableName"/>
- <module name="LocalVariableName"/>
- <module name="MemberName"/>
- <module name="MethodName"/>
- <module name="PackageName"/>
- <module name="ParameterName"/>
- <module name="StaticVariableName"/>
- <module name="TypeName"/>
-
-
- <!-- Checks for Headers -->
- <!-- See http://checkstyle.sf.net/config_header.html -->
- <!-- <module name="Header"> -->
- <!-- The follow property value demonstrates the ability -->
- <!-- to have access to ANT properties. In this case it uses -->
- <!-- the ${basedir} property to allow Checkstyle to be run -->
- <!-- from any directory within a project. See property -->
- <!-- expansion, -->
- <!-- http://checkstyle.sf.net/config.html#properties -->
- <!-- <property -->
- <!-- name="headerFile" -->
- <!-- value="${basedir}/java.header"/> -->
- <!-- </module> -->
-
-
- <!-- Checks for imports -->
- <!-- See http://checkstyle.sf.net/config_import.html -->
- <module name="AvoidStarImport"/>
- <module name="IllegalImport"/> <!-- defaults to sun.* packages -->
- <module name="RedundantImport"/>
- <module name="UnusedImports"/>
-
-
- <!-- Checks for Size Violations. -->
- <!-- See http://checkstyle.sf.net/config_sizes.html -->
- <!-- module name="LineLength"/ -->
- <!--module name="MethodLength"/ -->
- <module name="ParameterNumber"/>
-
-
- <!-- Checks for whitespace -->
- <!-- See http://checkstyle.sf.net/config_whitespace.html -->
- <module name="EmptyForIteratorPad">
- <property name="option" value="space"/>
- </module>
- <module name="MethodParamPad"/>
- <module name="NoWhitespaceAfter">
- <property name="tokens" value="BNOT, DEC, DOT, INC, LNOT, UNARY_MINUS, UNARY_PLUS"/>
- </module>
- <module name="NoWhitespaceBefore"/>
- <module name="OperatorWrap"/>
- <module name="ParenPad">
- <property name="tokens" value="ANNOTATION_FIELD_DEF, CTOR_DEF, CTOR_CALL, EXPR, LITERAL_CATCH, LITERAL_DO, LITERAL_FOR, LITERAL_IF, LITERAL_NEW, LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_WHILE, METHOD_CALL, METHOD_DEF, RESOURCE_SPECIFICATION, SUPER_CTOR_CALL, QUESTION"/>
- <property name="option" value="space"/>
- </module>
- <module name="TypecastParenPad">
- <property name="option" value="space"/>
- </module>
- <module name="WhitespaceAfter">
- <property name="tokens" value="COMMA, TYPECAST"/>
- </module>
- <module name="WhitespaceAround"/>
- <module name="EmptyLineSeparator">
- <property name="tokens" value="IMPORT, CLASS_DEF, ENUM_DEF, INTERFACE_DEF, CTOR_DEF, METHOD_DEF, STATIC_INIT, INSTANCE_INIT"/>
- </module>
-
-
- <!-- Modifier Checks -->
- <!-- See http://checkstyle.sf.net/config_modifiers.html -->
- <module name="ModifierOrder"/>
- <module name="RedundantModifier"/>
-
-
- <!-- Checks for blocks. You know, those {}'s -->
- <!-- See http://checkstyle.sf.net/config_blocks.html -->
- <module name="AvoidNestedBlocks"/>
- <module name="EmptyBlock"/>
- <module name="LeftCurly">
- <property name="option" value="nl"/>
- </module>
- <module name="NeedBraces"/>
- <module name="RightCurly">
- <property name="option" value="alone"/>
- </module>
-
-
- <!-- Checks for common coding problems -->
- <!-- See http://checkstyle.sf.net/config_coding.html -->
- <!-- module name="AvoidInlineConditionals"/ -->
- <module name="EmptyStatement"/>
- <module name="EqualsHashCode"/>
- <!-- module name="HiddenField">
- <property name="ignoreSetter" value="true"/>
- <property name="ignoreConstructorParameter" value="true"/>
- <property name="setterCanReturnItsClass" value="true"/>
- </module -->
- <module name="IllegalInstantiation"/>
- <module name="InnerAssignment"/>
- <!-- module name="MagicNumber"/ -->
- <module name="MissingSwitchDefault"/>
- <module name="SimplifyBooleanExpression"/>
- <!-- module name="SimplifyBooleanReturn"/ -->
-
- <!-- Checks for class design -->
- <!-- See http://checkstyle.sf.net/config_design.html -->
- <!-- module name="DesignForExtension"/ -->
- <module name="FinalClass"/>
- <module name="HideUtilityClassConstructor"/>
- <module name="InterfaceIsType"/>
- <module name="VisibilityModifier">
- <property name="packageAllowed" value="true"/>
- <property name="protectedAllowed" value="true"/>
- </module>
-
-
-
- <!-- Miscellaneous other checks. -->
- <!-- See http://checkstyle.sf.net/config_misc.html -->
- <module name="ArrayTypeStyle"/>
- <!-- module name="FinalParameters"/ -->
- <!-- module name="TodoComment"/ -->
- <module name="UpperEll"/>
-
- </module>
-
-</module>
diff --git a/first-benchmark/target/checkstyle-result.xml b/first-benchmark/target/checkstyle-result.xml
deleted file mode 100644
index fb99066..0000000
--- a/first-benchmark/target/checkstyle-result.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<checkstyle version="6.8.1">
-<file name="/Users/elecharny/apacheds/value/shared/first-benchmark/src/main/java/org/apache/directory/MyBenchmark.java">
-<error line="0" severity="error" message="Got an exception - expecting EOF, found '}'" source="com.puppycrawl.tools.checkstyle.TreeWalker"/>
-</file>
-<file name="/Users/elecharny/apacheds/value/shared/first-benchmark/src/main/resources/log4j.properties">
-</file>
-</checkstyle>
diff --git a/first-benchmark/target/classes/log4j.properties b/first-benchmark/target/classes/log4j.properties
deleted file mode 100644
index 7c79176..0000000
--- a/first-benchmark/target/classes/log4j.properties
+++ /dev/null
@@ -1,22 +0,0 @@
-#############################################################################
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#############################################################################
-log4j.rootCategory=ERROR, stdout
-
-log4j.appender.stdout=org.apache.log4j.ConsoleAppender
-log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
-log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n
-log4j.org.apache.directory.api.ldap.codec.standalone.StandaloneLdapCodecService=DEBUG
--
To stop receiving notification emails like this one, please contact
elecharny@apache.org.