GitHub user otaviojava opened a pull request:

    https://github.com/apache/tinkerpop/pull/948

    Optimizes Map with enum using the EnumMap implementation

    This PR replaces the HashMap implementation to 
[EnumMap](https://docs.oracle.com/javase/8/docs/api/java/util/EnumMap.html) 
that as its documentation says:
    
    "A specialized Map implementation for use with enum type keys. All of the 
keys in an enum map must come from a single enum type that is specified, 
explicitly or implicitly, when the map is created. Enum maps are represented 
internally as arrays. This representation is extremely compact and efficient."

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/otaviojava/tinkerpop tp32_enum_map

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/tinkerpop/pull/948.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #948
    
----
commit 9e1865a98d9350451d29dc837e053109d714d7e3
Author: Otavio Santana <otaviopolianasantana@...>
Date:   2018-10-03T17:17:07Z

    Optimazes Map with enum using the EnumMap implementation

----


---

Reply via email to