aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/util/hipe_vectors.hrl
diff options
context:
space:
mode:
authorMagnus Lång <[email protected]>2016-03-18 16:31:34 +0100
committerMagnus Lång <[email protected]>2016-07-11 17:57:47 +0200
commitfd97ddb2c3031140f12c98c93a31325b15ea8cb6 (patch)
treea73d5ef7f5172cc80d73630c69dc6605a74b3a45 /lib/hipe/util/hipe_vectors.hrl
parent4e2d74858fbcd7b62b6538722d5bed0887897c40 (diff)
downloadotp-fd97ddb2c3031140f12c98c93a31325b15ea8cb6.tar.gz
otp-fd97ddb2c3031140f12c98c93a31325b15ea8cb6.tar.bz2
otp-fd97ddb2c3031140f12c98c93a31325b15ea8cb6.zip
hipe_vectors: Change implementation to 'array'
The 'array' module is highly optimised for the hipe_vectors use-case, and seems to perform slightly better than the gb_trees implementation. Also, we remove the completely unnecessary hipe_vectors.hrl header.
Diffstat (limited to 'lib/hipe/util/hipe_vectors.hrl')
-rw-r--r--lib/hipe/util/hipe_vectors.hrl29
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/hipe/util/hipe_vectors.hrl b/lib/hipe/util/hipe_vectors.hrl
deleted file mode 100644
index d4556e9dc4..0000000000
--- a/lib/hipe/util/hipe_vectors.hrl
+++ /dev/null
@@ -1,29 +0,0 @@
-%%
-%% %CopyrightBegin%
-%%
-%% Copyright Ericsson AB 2008-2016. All Rights Reserved.
-%%
-%% Licensed 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.
-%%
-%% %CopyrightEnd%
-%%
-%%-define(USE_TUPLES, true).
--define(USE_GBTREES, true).
-
--ifdef(USE_TUPLES).
--type hipe_vector() :: tuple().
--endif.
-
--ifdef(USE_GBTREES).
--type hipe_vector() :: gb_trees:tree().
--endif.