Clojure

Make PersistentQueue Counted

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Release 1.3
  • Component/s: None
  • Labels:
    None
  • Approval:
    Ok

Description

Currently, calling count() on PersistentQueue can take a long time for large queues. PersistentQueue should implement the Counted interface and provide constant time counting by maintaining a count of the number of elements internally.

Activity

Hide
Assembla Importer added a comment -

importer said: [file:dNDFA4ADar352MeJe5cbCb]

Show
Assembla Importer added a comment - importer said: [file:dNDFA4ADar352MeJe5cbCb]
Hide
Assembla Importer added a comment -

digash said: * This also affects agents performance.

    • Agents use count method in en-queuing methods.
    • It causes large slow down on sent to agent when queue size is large.
Show
Assembla Importer added a comment - digash said: * This also affects agents performance.
    • Agents use count method in en-queuing methods.
    • It causes large slow down on sent to agent when queue size is large.
Hide
Assembla Importer added a comment -
Show
Assembla Importer added a comment - stu said: [file:aGuueU15Gr347DeJe5cbLA]
Hide
Assembla Importer added a comment -

stu said: Second patch subsumes first, adds tests

Show
Assembla Importer added a comment - stu said: Second patch subsumes first, adds tests
Hide
Assembla Importer added a comment -

stu said: Updating tickets (#263, #305, #315, #364, #453)

Show
Assembla Importer added a comment - stu said: Updating tickets (#263, #305, #315, #364, #453)

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: