xapi.collect.api.CharPool Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xapi-dev Show documentation
Show all versions of xapi-dev Show documentation
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);
}