Skip to content

Deprecating MapTo variants. #6399

@benlesh

Description

@benlesh

Based off of a comment here

At one point, there was some performance advantage to having mapTo, concatMapTo, switchMapTo, et al. Because they introduced a way to map to the same value over and over again, without introducing a closure.

Now:

  1. Closures are much faster.
  2. Therefor the whole library is written in such a way that is uses closures.

Considering that mergeMapTo(x) and mergeMap(() => x) do pretty much the same thing, only one is hiding the closure, I thikn we should deprecate the MapTo variants to help clean up the core API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    8.xIssues and PRs for version 8.x

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions