Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

perf: improvements to $q #8300

Closed
Closed
@jeffbcross

Description

@jeffbcross

This is a meta issue to track performance improvements to be made in $q for 1.3.0.

The main problems to be solved within the scope of this issue:

  • Reduction of deferred instance memory to reduce GC pressure. One quick win is to move instance methods to prototype instead of created inside constructor.
  • Some learnings should be taken from bluebird, which has a very fast promise implementation.

Related issues:

There is a PR from @caitp which updates A+ compliance, adds ES6-like constructor API, and begins to experiment with porting bluebird to $q (but with many tests failing): #8067. I've suggested simplifying that PR to not include perf improvements.

Benchmarks:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions