All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xapi.collect.api.CharPool Maven / Gradle / Ivy

Go to download

Everything needed to run a comprehensive dev environment. Just type X_ and pick a service from autocomplete; new dev modules will be added as they are built. The only dev service not included in the uber jar is xapi-dev-maven, as it includes all runtime dependencies of maven, adding ~4 seconds to build time, and 6 megabytes to the final output jar size (without xapi-dev-maven, it's ~1MB).

The newest version!
package xapi.collect.api;

/**
 * A char[] interner; for reducing memory footprint down to the minimum set
 * of unique characters possible.
 * 

* We prefer char[] over interned strings in mission critical sections, * as they use less memory; a smart collection can compress *

* @author "James X. Nelson ([email protected])" * */ public interface CharPool { final char[] EMPTY_STRING = new char[0]; char[] getArray(char[] src); char[] getArray(char[] src, int start, int len); char[] getArray(CharSequence src); char[] getArray(CharSequence src, int start, int len); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy