[ 
https://issues.apache.org/jira/browse/HIVE-1626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Rebele updated HIVE-1626:
--------------------------------
    Description: 
We currently use Stack as part of a general node traversal library. Stack 
should not be used for this purpose because its inheritance from Vector 
introduces unnecessary synchronization overhead. Most projects will eventually 
add an ArrayStack implementation and use it instead.

Original description was: 

我们目前使用 Stack 作为通用节点遍历库的一部分。不应将 Stack 用于此目的,因为它从 Vector 继承会产生多余的同步开销。

大多数项目最终都会添加一个 ArrayStack 实现并改用它。

  was:
我们目前使用 Stack 作为通用节点遍历库的一部分。不应将 Stack 用于此目的,因为它从 Vector 继承会产生多余的同步开销。

大多数项目最终都会添加一个 ArrayStack 实现并改用它。


> stop using java.util.Stack
> --------------------------
>
>                 Key: HIVE-1626
>                 URL: https://issues.apache.org/jira/browse/HIVE-1626
>             Project: Hive
>          Issue Type: Improvement
>          Components: Query Processor
>    Affects Versions: 0.7.0
>            Reporter: John Sichi
>            Assignee: Teddy Choi
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-1626.2.patch, HIVE-1626.2.patch, HIVE-1626.3.patch, 
> HIVE-1626.3.patch, HIVE-1626.3.patch
>
>          Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> We currently use Stack as part of a general node traversal library. Stack 
> should not be used for this purpose because its inheritance from Vector 
> introduces unnecessary synchronization overhead. Most projects will 
> eventually add an ArrayStack implementation and use it instead.
> Original description was: 
> 我们目前使用 Stack 作为通用节点遍历库的一部分。不应将 Stack 用于此目的,因为它从 Vector 继承会产生多余的同步开销。
> 大多数项目最终都会添加一个 ArrayStack 实现并改用它。



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to