Github user aarondav commented on a diff in the pull request:

    https://github.com/apache/spark/pull/762#discussion_r12621155
  
    --- Diff: core/src/main/scala/org/apache/spark/scheduler/Pool.scala ---
    @@ -35,18 +37,15 @@ private[spark] class Pool(
       extends Schedulable
       with Logging {
     
    -  var schedulableQueue = new ArrayBuffer[Schedulable]
    -  var schedulableNameToSchedulable = new HashMap[String, Schedulable]
    -
    +  val schedulableQueue = new LinkedBlockingQueue[Schedulable]
    --- End diff --
    
    nit: ConurrentLinkedQueue is a more suitable data structure for this type 
of access -- it provides a very efficient linked list, and it uses "add()" 
instead of "offer()". Also no blocking stuff.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to